Skip to content

Commit

Permalink
Show zero hton balance for new or empty wallets
Browse files Browse the repository at this point in the history
  • Loading branch information
behrang committed Oct 9, 2023
1 parent 5e7b06e commit d9083cc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Model.ts
Original file line number Diff line number Diff line change
Expand Up @@ -140,8 +140,8 @@ export class Model {
}

get htonBalanceFormatted() {
if (this.htonWalletState != null) {
return formatAmount(this.htonWalletState[0]) + ' hTON'
if (this.tonBalance != null) {
return formatAmount(this.htonWalletState?.[0] ?? 0n) + ' hTON'
}
}

Expand Down

0 comments on commit d9083cc

Please sign in to comment.