Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit6822dc7

Browse files
authored
Refactor: Repo card: Fixed type error in iconWithLabel function (anuraghazra#2999)
1 parent36eb17f commit6822dc7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

‎src/cards/repo-card.js‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,7 @@ const ICON_SIZE = 16;
6262
*@returns {string} Icon with label SVG object.
6363
*/
6464
consticonWithLabel=(icon,label,testid)=>{
65-
if(label<=0)return"";
65+
if(typeoflabel==="number"&&label<=0)return"";
6666
consticonSvg=`
6767
<svg
6868
class="icon"

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp