From 74659cbeab3d08884f20def77f42f253db8675bb Mon Sep 17 00:00:00 2001 From: Kingsley <10992364+kingsleydon@users.noreply.github.com> Date: Fri, 28 Jul 2023 19:14:15 +0800 Subject: [PATCH] fix(app): desktop SubWallet option (#312) --- apps/app/components/WalletDialog.tsx | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/apps/app/components/WalletDialog.tsx b/apps/app/components/WalletDialog.tsx index 1f67a33b..5587afb8 100644 --- a/apps/app/components/WalletDialog.tsx +++ b/apps/app/components/WalletDialog.tsx @@ -55,7 +55,10 @@ const WalletDialog: FC = () => { const polkadotJsWallet = sortedWallets.find( (w) => w.extensionName === 'polkadot-js', ) - if (polkadotJsWallet != null) { + if ( + polkadotJsWallet != null && + window.matchMedia('(max-width: 767px)').matches + ) { if ( (window as {SubWallet?: {isSubWallet?: boolean}}).SubWallet ?.isSubWallet === true