Skip to content

Commit

Permalink
fix(app): desktop SubWallet option (#312)
Browse files Browse the repository at this point in the history
  • Loading branch information
kingsleydon authored Jul 28, 2023
1 parent c408a34 commit 74659cb
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/app/components/WalletDialog.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 74659cb

Please sign in to comment.