From 6822dc77d4af4b0412a6b991918d13d2e5cc3fc4 Mon Sep 17 00:00:00 2001 From: Alexandr Garbuzov Date: Thu, 27 Jul 2023 23:01:54 +0300 Subject: [PATCH] Refactor: Repo card: Fixed type error in iconWithLabel function (#2999) --- src/cards/repo-card.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/cards/repo-card.js b/src/cards/repo-card.js index a306c1d..c4b890f 100644 --- a/src/cards/repo-card.js +++ b/src/cards/repo-card.js @@ -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 = `