diff --git a/src/components/Pages/RequestPage/RequestPage.tsx b/src/components/Pages/RequestPage/RequestPage.tsx index 55924ae..b39771e 100644 --- a/src/components/Pages/RequestPage/RequestPage.tsx +++ b/src/components/Pages/RequestPage/RequestPage.tsx @@ -110,7 +110,11 @@ export const RequestPage = () => { // Show different views depending on the request method. if (request.method === 'dcl_personal_sign') { - setView(View.VERIFY_SIGN_IN) + if (targetConfig.skipVerifyCode) { + onApproveSignInVerification() + } else { + setView(View.VERIFY_SIGN_IN) + } } else { setView(View.WALLET_INTERACTION) } @@ -154,9 +158,11 @@ export const RequestPage = () => { }, []) const onApproveSignInVerification = useCallback(async () => { - getAnalytics().track(TrackingEvents.CLICK, { - action: ClickEvents.APPROVE_SING_IN - }) + if (!targetConfig.skipVerifyCode) { + getAnalytics().track(TrackingEvents.CLICK, { + action: ClickEvents.APPROVE_SING_IN + }) + } setIsLoading(true) const provider = providerRef.current try { diff --git a/src/hooks/targetConfig.ts b/src/hooks/targetConfig.ts index 40ccc50..349714c 100644 --- a/src/hooks/targetConfig.ts +++ b/src/hooks/targetConfig.ts @@ -2,6 +2,7 @@ import { useLocation } from 'react-router-dom' type TargetConfigId = 'default' | 'alternative' type TargetConfig = { + skipVerifyCode: boolean skipSetup: boolean showWearablePreview: boolean explorerText: string @@ -9,11 +10,13 @@ type TargetConfig = { const targetConfigRecord: Record = { default: { + skipVerifyCode: false, skipSetup: false, showWearablePreview: true, explorerText: 'Desktop App' }, alternative: { + skipVerifyCode: true, skipSetup: true, showWearablePreview: false, explorerText: 'Explorer'