From 185cdb186b58903bb0b0f514722fe094c7093c1e Mon Sep 17 00:00:00 2001 From: bluecco Date: Tue, 7 Nov 2023 15:29:46 +0100 Subject: [PATCH] fix: update default connectors ordering --- src/connectors/argentMobile/index.ts | 2 +- src/connectors/webwallet/index.ts | 2 +- src/helpers/defaultConnectors.ts | 8 ++++---- 3 files changed, 6 insertions(+), 6 deletions(-) diff --git a/src/connectors/argentMobile/index.ts b/src/connectors/argentMobile/index.ts index 94f9b10..d426b57 100644 --- a/src/connectors/argentMobile/index.ts +++ b/src/connectors/argentMobile/index.ts @@ -49,7 +49,7 @@ export class ArgentMobileConnector extends Connector { } get name(): string { - return "Argent Mobile" + return "Argent (mobile)" } get icon(): string { diff --git a/src/connectors/webwallet/index.ts b/src/connectors/webwallet/index.ts index fdf6a93..bb81213 100644 --- a/src/connectors/webwallet/index.ts +++ b/src/connectors/webwallet/index.ts @@ -79,7 +79,7 @@ export class WebWalletConnector extends Connector { } get title(): string { - return "Continue with email" + return "Email" } get subtitle(): string { diff --git a/src/helpers/defaultConnectors.ts b/src/helpers/defaultConnectors.ts index 6acc6c1..5a36195 100644 --- a/src/helpers/defaultConnectors.ts +++ b/src/helpers/defaultConnectors.ts @@ -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( @@ -29,5 +26,8 @@ export const defaultConnectors = ({ ) } + defaultConnectors.push(new ArgentMobileConnector(argentMobileOptions)) + defaultConnectors.push(new WebWalletConnector({ url: webWalletUrl })) + return defaultConnectors }