Skip to content

Commit

Permalink
Update getFontWeight.ts, resolve merge conflict
Browse files Browse the repository at this point in the history
  • Loading branch information
JeroenRoodIHS authored Mar 19, 2024
1 parent 2ec3936 commit c184a13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/text/getFontWeight.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,5 +12,5 @@ function getFontWeight(fontWeight){
900 : ["black", "heavy", "900"],
950 : ["extrablack", "ultrablack", "950"]
}
return Object.keys(weights).find(weight => weights[weight].includes(inputFontWeight)) || 400;
return Number(Object.keys(weights).find(weight => weights[weight].includes(inputFontWeight))) || 400;
}

0 comments on commit c184a13

Please sign in to comment.