Skip to content

Commit

Permalink
πŸ› Guard missing currency for commission
Browse files Browse the repository at this point in the history
  • Loading branch information
williamchong committed Sep 13, 2024
1 parent ddb2abf commit 46b8b17
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions pages/nft-book-store/user/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -339,8 +339,9 @@ const commissionHistoryRows = computed(() => {
return {
...row,
type,
amount: `${row.currency}${row.amount / 100}`,
amountTotal: `${row.currency}${row.amountTotal / 100}`,
amount: row.amount / 100,
amountTotal: row.amountTotal / 100,
currency: row.currency || 'usd',
timestamp: new Date(row.timestamp).toLocaleString()
}
})
Expand Down

0 comments on commit 46b8b17

Please sign in to comment.