mirror of
https://github.com/tiennm99/github-readme-stats.git
synced 2026-07-16 14:16:51 +00:00
Refactor: Repo card: Fixed type error in iconWithLabel function (#2999)
This commit is contained in:
@@ -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