Skip to content

Commit

Permalink
fix weiToFiat
Browse files Browse the repository at this point in the history
  • Loading branch information
legobeat committed Oct 28, 2024
1 parent 6190bde commit 714774e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/util/number/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -489,7 +489,7 @@ export function weiToFiat(
currencyCode,
decimalsToShow = 5,
) {
if (typeof wei === 'undefined' || !conversionRate || typeof wei === 'number' && isNaN(wei) || !conversionRate || typeof wei !== 'number' && !isBN(wei)) {
if (typeof wei === 'undefined' || !conversionRate || (typeof wei === 'number' || isNaN(wei)) && isNaN(wei) || typeof wei !== 'number' && !isBN(wei)) {
return undefined;
}
if (!wei) {
Expand Down

0 comments on commit 714774e

Please sign in to comment.