Skip to content

Commit

Permalink
Merge pull request #23 from argentlabs/BLO-1767
Browse files Browse the repository at this point in the history
fix: update default connectors ordering
  • Loading branch information
bluecco authored Nov 8, 2023
2 parents e2b46c9 + 185cdb1 commit 52fa756
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion src/connectors/argentMobile/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ export class ArgentMobileConnector extends Connector {
}

get name(): string {
return "Argent Mobile"
return "Argent (mobile)"
}

get icon(): string {
Expand Down
2 changes: 1 addition & 1 deletion src/connectors/webwallet/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ export class WebWalletConnector extends Connector {
}

get title(): string {
return "Continue with email"
return "Email"
}

get subtitle(): string {
Expand Down
8 changes: 4 additions & 4 deletions src/helpers/defaultConnectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,7 @@ export const defaultConnectors = ({
}): Connector[] => {
const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent)

const defaultConnectors: Connector[] = [
new WebWalletConnector({ url: webWalletUrl }),
new ArgentMobileConnector(argentMobileOptions),
]
const defaultConnectors: Connector[] = []

if (!isSafari) {
defaultConnectors.push(
Expand All @@ -29,5 +26,8 @@ export const defaultConnectors = ({
)
}

defaultConnectors.push(new ArgentMobileConnector(argentMobileOptions))
defaultConnectors.push(new WebWalletConnector({ url: webWalletUrl }))

return defaultConnectors
}

0 comments on commit 52fa756

Please sign in to comment.