Skip to content

Commit

Permalink
Fixed: null being displayed as amount on UI when missing information(#…
Browse files Browse the repository at this point in the history
  • Loading branch information
ymaheshwari1 committed Dec 24, 2024
1 parent d36b422 commit e73e0d2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -187,7 +187,7 @@ const currentSymbol: any = {
}

const formatCurrency = (amount: any, code: string) => {
return `${currentSymbol[code] || code} ${amount}`
return `${currentSymbol[code] || code} ${amount || 0}`
}

const getColorByDesc = (desc: string) => ({
Expand Down

0 comments on commit e73e0d2

Please sign in to comment.