From 27735a4d4d07d0061a1b957206eea2cbfbd947b1 Mon Sep 17 00:00:00 2001 From: Max Voloshinskii Date: Wed, 17 Apr 2024 21:04:53 +0300 Subject: [PATCH] fix crash --- packages/mobile/src/tabs/Wallet/content-providers/staking.ts | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/packages/mobile/src/tabs/Wallet/content-providers/staking.ts b/packages/mobile/src/tabs/Wallet/content-providers/staking.ts index 6ff9074c2..837d07942 100644 --- a/packages/mobile/src/tabs/Wallet/content-providers/staking.ts +++ b/packages/mobile/src/tabs/Wallet/content-providers/staking.ts @@ -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)))