Skip to content

Commit

Permalink
chore: improve check
Browse files Browse the repository at this point in the history
  • Loading branch information
Cussone committed Oct 31, 2024
1 parent b9acfbc commit 6425b27
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ import {
import { DEFAULT_WEBWALLET_URL } from "./connectors/webwallet/constants"

import { Connector, ConnectorData, StarknetkitConnector } from "./connectors"
import { ArgentMobileBaseConnector } from "./connectors/argent/argentMobile"
import { defaultConnectors } from "./helpers/defaultConnectors"
import { getStoreVersionFromBrowser } from "./helpers/getStoreVersionFromBrowser"
import {
Expand Down Expand Up @@ -173,7 +174,7 @@ export const connect = async ({
)

if (resultType === "wallet") {
if (selectedConnector?.name === "Argent (mobile)") {
if (selectedConnector instanceof ArgentMobileBaseConnector) {
modal.$set({ layout: Layout.qrCode })
} else {
modal.$set({ layout: Layout.connecting })
Expand Down

0 comments on commit 6425b27

Please sign in to comment.