Fixed layout toLowerCase bug (#2770)

This commit is contained in:
Alexandr Garbuzov
2023-06-05 12:10:22 +02:00
committed by GitHub
parent 1a2a82c3be
commit 98b047751e
2 changed files with 11 additions and 1 deletions
+1 -1
View File
@@ -746,7 +746,7 @@ const renderTopLanguages = (topLangs, options = {}) => {
totalLanguageSize,
hide_progress,
);
} else if (layout?.toLowerCase() === "donut") {
} else if (layout === "donut") {
height = calculateDonutLayoutHeight(langs.length);
width = width + 50; // padding
finalLayout = renderDonutLayout(langs, width, totalLanguageSize);