Skip to content

Commit

Permalink
fix crash
Browse files Browse the repository at this point in the history
  • Loading branch information
voloshinskii committed Apr 17, 2024
1 parent feb6088 commit 27735a4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions packages/mobile/src/tabs/Wallet/content-providers/staking.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,6 +54,10 @@ export class StakingContentProvider extends ContentProviderPrototype<{
);
}

if (!info) {
return fiatRate;
}

if (fiatRate && info.pending_deposit) {
fiatRate.total.raw = new BigNumber(fiatRate.total.raw)
.plus(this.deps.tonPrice.getRawTotal(formatter.fromNano(info.pending_deposit)))
Expand Down

0 comments on commit 27735a4

Please sign in to comment.