mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-05-14 10:58:34 +00:00
Refactor: Repo card: Fixed type error in iconWithLabel function (#2999)
This commit is contained in:
committed by
GitHub
parent
36eb17ffbb
commit
6822dc77d4
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user