From 6a2623b070c098a945b0aaa312563e94b9b97877 Mon Sep 17 00:00:00 2001 From: wenty22 Date: Thu, 14 Nov 2024 17:40:44 +0800 Subject: [PATCH] fix: Add tips for solana transfer --- .release/.changeset/stale-files-kick.md | 6 ------ .../{hip-ladybugs-attend.md => tough-toes-relax.md} | 0 .../src/modules/wallet/hooks/useSolanaAccount.ts | 2 +- 3 files changed, 1 insertion(+), 7 deletions(-) delete mode 100644 .release/.changeset/stale-files-kick.md rename .release/.changeset/{hip-ladybugs-attend.md => tough-toes-relax.md} (100%) diff --git a/.release/.changeset/stale-files-kick.md b/.release/.changeset/stale-files-kick.md deleted file mode 100644 index 3ef14dad..00000000 --- a/.release/.changeset/stale-files-kick.md +++ /dev/null @@ -1,6 +0,0 @@ ---- -"@bnb-chain/canonical-bridge-widget": patch -"@bnb-chain/canonical-bridge-sdk": patch ---- - -Fix phantom wallet deelink issue on mobile diff --git a/.release/.changeset/hip-ladybugs-attend.md b/.release/.changeset/tough-toes-relax.md similarity index 100% rename from .release/.changeset/hip-ladybugs-attend.md rename to .release/.changeset/tough-toes-relax.md diff --git a/packages/canonical-bridge-widget/src/modules/wallet/hooks/useSolanaAccount.ts b/packages/canonical-bridge-widget/src/modules/wallet/hooks/useSolanaAccount.ts index 8d2aa4c3..23484709 100644 --- a/packages/canonical-bridge-widget/src/modules/wallet/hooks/useSolanaAccount.ts +++ b/packages/canonical-bridge-widget/src/modules/wallet/hooks/useSolanaAccount.ts @@ -11,6 +11,6 @@ export function useSolanaAccount() { return { address: publicKey?.toBase58(), isConnected: connected, - chainId: solana?.id, + chainId: connected ? solana?.id : undefined, }; }