Skip to content

Commit

Permalink
Fix 'Connected wallet is not supported' condition for manual case (#2371
Browse files Browse the repository at this point in the history
)
  • Loading branch information
yuli-ferna authored Aug 13, 2024
1 parent bce9f15 commit 680e419
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion wormhole-connect/src/utils/transferValidation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -161,7 +161,11 @@ export const validateWallet = async (
if (wallet.currentAddress && wallet.currentAddress !== wallet.address)
return 'Switch to connected wallet';
const acceptedChains = walletAcceptedChains(wallet.type);
if (chain && !acceptedChains.includes(chain))
if (
chain &&
!acceptedChains.includes(chain) &&
wallet.name !== MANUAL_WALLET_NAME
)
return `Connected wallet is not supported for ${chain}`;
return '';
};
Expand Down

0 comments on commit 680e419

Please sign in to comment.