Refactor: Repo card: Fixed type error in iconWithLabel function (#2999)

This commit is contained in:
Alexandr Garbuzov
2023-07-27 23:01:54 +03:00
committed by GitHub
parent 36eb17ffbb
commit 6822dc77d4
+1 -1
View File
@@ -62,7 +62,7 @@ const ICON_SIZE = 16;
* @returns {string} Icon with label SVG object.
*/
const iconWithLabel = (icon, label, testid) => {
if (label <= 0) return "";
if (typeof label === "number" && label <= 0) return "";
const iconSvg = `
<svg
class="icon"