diff --git a/src/screens/ApproveTransfer.tsx b/src/screens/ApproveTransfer.tsx index 8a5c54a..b0f37c3 100644 --- a/src/screens/ApproveTransfer.tsx +++ b/src/screens/ApproveTransfer.tsx @@ -548,7 +548,7 @@ const ApproveTransfer = ({ route }: ApproveTransferProps) => { if (!cosmosStargateClient) { return; } - if (!isSufficientFunds) { + if (!balance) { return; } @@ -567,13 +567,15 @@ const ApproveTransfer = ({ route }: ApproveTransferProps) => { if (!(error instanceof Error)) { throw error; } - + if (window.Android?.onTransferError) { + window.Android.onTransferError(`Not able to estimate gas`); + } setTxError(error.message); setIsTxErrorDialogOpen(true); } }; getCosmosGas(); - }, [cosmosStargateClient, isSufficientFunds, sendMsg, transaction,txMemo]); + }, [cosmosStargateClient, balance, sendMsg, transaction, txMemo]); useEffect(() => { if (balance && !isSufficientFunds && !fees) {