From 7843aa586168ab07be06f465ac8447a2a9422c57 Mon Sep 17 00:00:00 2001 From: Bruno Wu Date: Wed, 7 Feb 2024 08:20:35 +0000 Subject: [PATCH] fix issue (#414) --- products/bridge/bridge-web/src/App.tsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/products/bridge/bridge-web/src/App.tsx b/products/bridge/bridge-web/src/App.tsx index 4ea9acf37..82ca6c6bf 100644 --- a/products/bridge/bridge-web/src/App.tsx +++ b/products/bridge/bridge-web/src/App.tsx @@ -139,14 +139,7 @@ function App() { ], functionName: "transfer", value: fees ?? 0n, - enabled: !!( - toChainConfig && - fromChainConfig && - !fromChainConfig.isZilliqa && - ethRecipient && - amount && - decimals - ), + enabled: hasEnoughAllowance, }); const { writeAsync: bridge, isLoading: isLoadingBridge } =