Skip to content

Commit

Permalink
fix sending
Browse files Browse the repository at this point in the history
  • Loading branch information
sorokin0andrey committed Feb 8, 2024
1 parent c028462 commit 821792e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/mobile/src/store/wallet/sagas.ts
Original file line number Diff line number Diff line change
Expand Up @@ -250,8 +250,8 @@ function* confirmSendCoinsWorker(action: ConfirmSendCoinsAction) {
tokenType === TokenType.Jetton
? new BigNumber(toNano(fee)).plus(BASE_FORWARD_AMOUNT.toString()).toString()
: new BigNumber(toNano(fee)).plus(toNano(amount)).toString();
yield call(tk.wallet.balances.load);
const balance = tk.wallet.balances.state.data.ton;
yield call([tk.wallet.balances, 'load']);
const balance = toNano(tk.wallet.balances.state.data.ton);
if (new BigNumber(amountNano).gt(new BigNumber(balance))) {
return onInsufficientFunds({ totalAmount: amountNano, balance });
} else {
Expand Down

0 comments on commit 821792e

Please sign in to comment.