Skip to content

Commit a49e380

Browse files
committed
fix: set insufficientBal to undefined when not running an e2e test
1 parent adb4fa6 commit a49e380

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

ui/pages/bridge/prepare/prepare-bridge-page.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -324,7 +324,9 @@ const PrepareBridgePage = () => {
324324
// This override allows quotes to be returned when the rpcUrl is a forked network
325325
// Otherwise quotes get filtered out by the bridge-api when the wallet's real
326326
// balance is less than the tenderly balance
327-
insufficientBal: Boolean(providerConfig?.rpcUrl?.includes('localhost')),
327+
insufficientBal: providerConfig?.rpcUrl?.includes('localhost')
328+
? true
329+
: undefined,
328330
slippage,
329331
walletAddress: selectedAccount?.address ?? '',
330332
destWalletAddress: selectedDestinationAccount?.address,

0 commit comments

Comments
 (0)