diff --git a/sdk/packages/selector-base/src/modal.ts b/sdk/packages/selector-base/src/modal.ts index 69d962a8..1b3aa243 100644 --- a/sdk/packages/selector-base/src/modal.ts +++ b/sdk/packages/selector-base/src/modal.ts @@ -4,7 +4,6 @@ import { WalletSelectorItem } from '@nightlylabs/wallet-selector-modal' import { type IWalletListItem, type NetworkData } from './types' -import { isMobileBrowser } from './utils' export class NightlyConnectSelectorModal { _modal: NightlySelector | undefined @@ -44,12 +43,9 @@ export class NightlyConnectSelectorModal { } set walletsList(list: IWalletListItem[]) { - const filtered = list.filter((w) => - isMobileBrowser() ? w.walletType !== 'extension' : w.walletType !== 'mobile' - ) - this._walletsList = filtered + this._walletsList = list if (this._modal) { - this._modal.selectorItems = filtered.map((item) => ({ + this._modal.selectorItems = list.map((item) => ({ ...item, icon: item.image.default, link: item.homepage diff --git a/sdk/packages/selector-polkadot/src/adapter.ts b/sdk/packages/selector-polkadot/src/adapter.ts index 0ed77c3e..4ec9cb49 100644 --- a/sdk/packages/selector-polkadot/src/adapter.ts +++ b/sdk/packages/selector-polkadot/src/adapter.ts @@ -586,8 +586,12 @@ export class NightlyConnectAdapter ) { this.connectToMobileWallet(walletName) } else { - await this.connectToStandardWallet(walletName) - resolve() + try { + await this.connectToStandardWallet(walletName) + resolve() + } catch (error) { + reject(error) + } } })