From 7f1b2dbf4d881ee20dd7f2d3a8860695da7235a7 Mon Sep 17 00:00:00 2001 From: impelcrypto Date: Wed, 27 Nov 2024 18:00:00 +0800 Subject: [PATCH] fix: console --- src/hooks/bridge/useCcipBridge.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/hooks/bridge/useCcipBridge.ts b/src/hooks/bridge/useCcipBridge.ts index 9501d526a..baa5df133 100644 --- a/src/hooks/bridge/useCcipBridge.ts +++ b/src/hooks/bridge/useCcipBridge.ts @@ -286,7 +286,8 @@ export const useCcipBridge = () => { const setIsGasPayable = async (): Promise => { try { - if (!currentAccount.value) return; + if (!currentAccount.value || (!isToSoneium.value && !isApproved.value)) return; + isLoadingGasPayable.value = true; const ccipBridgeService = container.get(Symbols.CcipBridgeService); const amount = bridgeAmt.value ? Number(bridgeAmt.value) : 0.00001;