Skip to content

Commit

Permalink
Refactor: Repo card: Fixed type error in iconWithLabel function (anur…
Browse files Browse the repository at this point in the history
  • Loading branch information
qwerty541 authored and phamleduy04 committed Jul 28, 2023
1 parent a34a7cd commit c642bbf
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/cards/repo-card.js
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down

1 comment on commit c642bbf

@vercel
Copy link

@vercel vercel bot commented on c642bbf Jul 28, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.