Skip to content

Commit

Permalink
refactor(card): name err param
Browse files Browse the repository at this point in the history
Co-authored-by: Dane Thurber <dane.thurber@gmail.com>
  • Loading branch information
jaketrent and danethurber committed Oct 22, 2020
1 parent 6b30cdf commit 9eea7e2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/card/src/js/index.ts
@@ -1,7 +1,7 @@
export const toPercentageString = (num: number): string => {
try {
return Math.min(parseFloat(num.toFixed()), 100).toString() + '%'
} catch (_) {
} catch (_err) {
return '0%'
}
}

0 comments on commit 9eea7e2

Please sign in to comment.