From 59d222777aede57a67d2e07d8c33f5c2f9ca645b Mon Sep 17 00:00:00 2001 From: Korbinian Date: Thu, 6 Jun 2024 15:44:50 +0200 Subject: [PATCH] fix bug, change text --- .../ReviewStep/ReviewStep.svelte | 11 +++++------ packages/bridge-ui/src/i18n/en.json | 2 +- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/packages/bridge-ui/src/components/Bridge/FungibleBridgeComponents/ReviewStep/ReviewStep.svelte b/packages/bridge-ui/src/components/Bridge/FungibleBridgeComponents/ReviewStep/ReviewStep.svelte index 29f4d04e9c..fcbdd59c26 100644 --- a/packages/bridge-ui/src/components/Bridge/FungibleBridgeComponents/ReviewStep/ReviewStep.svelte +++ b/packages/bridge-ui/src/components/Bridge/FungibleBridgeComponents/ReviewStep/ReviewStep.svelte @@ -41,17 +41,16 @@ } $: if ($selectedToken?.type === TokenType.ETH) { - if ($processingFee + $enteredAmount > $ethBalance || !hasEnoughEth) { + if ($processingFee + $enteredAmount > $ethBalance) { hasEnoughFundsToContinue = false; } else { hasEnoughFundsToContinue = true; } + } else if ($processingFee > $ethBalance) { + hasEnoughFundsToContinue = false; + } else { + hasEnoughFundsToContinue = true; } - // else if (hasEnoughEth && $processingFee !== 0n) { - // hasEnoughFundsToContinue = true; - // } else { - // hasEnoughFundsToContinue = false; - // } const dispatch = createEventDispatcher(); diff --git a/packages/bridge-ui/src/i18n/en.json b/packages/bridge-ui/src/i18n/en.json index 59889ac319..f9e04b28ce 100644 --- a/packages/bridge-ui/src/i18n/en.json +++ b/packages/bridge-ui/src/i18n/en.json @@ -39,7 +39,7 @@ "nft_scan_again": "Scan again" }, "alerts": { - "not_enough_funds": "You do not have enough funds to cover the processing fee and transaction fee", + "not_enough_funds": "You do not have enough ETH to cover the processing fee and transaction fee", "slow_bridging": "Please note: Bridging to L1 will take around 24hrs!", "smart_contract_wallet": "It seems you are using a smart contract wallet. Please double check that the recipient matches your wallet on the destination or change it accordingly.", "stable_coin": "You are bridging a stable coin. For USDC, we are currently partnering with Stargate Bridge for liquidity. Consider using their bridge, as the ecosystem partners are likely using their bridged version",