From 2a86625f24511a38fc1775944a078f2d86540083 Mon Sep 17 00:00:00 2001 From: Hailey Date: Mon, 4 Aug 2025 19:40:03 -0700 Subject: [PATCH] rm debug code --- .../Signup/StepCaptcha/CaptchaWebView.tsx | 19 +++++++++---------- 1 file changed, 9 insertions(+), 10 deletions(-) diff --git a/src/screens/Signup/StepCaptcha/CaptchaWebView.tsx b/src/screens/Signup/StepCaptcha/CaptchaWebView.tsx index 5690676b0f..1787d0d5c8 100644 --- a/src/screens/Signup/StepCaptcha/CaptchaWebView.tsx +++ b/src/screens/Signup/StepCaptcha/CaptchaWebView.tsx @@ -1,9 +1,9 @@ import React from 'react' import {StyleSheet} from 'react-native' -import {WebView, WebViewNavigation} from 'react-native-webview' -import {ShouldStartLoadRequest} from 'react-native-webview/lib/WebViewTypes' +import {WebView, type WebViewNavigation} from 'react-native-webview' +import {type ShouldStartLoadRequest} from 'react-native-webview/lib/WebViewTypes' -import {SignupState} from '#/screens/Signup/state' +import {type SignupState} from '#/screens/Signup/state' const ALLOWED_HOSTS = [ 'bsky.social', @@ -30,13 +30,12 @@ export function CaptchaWebView({ onError: (error: unknown) => void }) { const redirectHost = React.useMemo(() => { - return 'e9755d3e012b.ngrok.app' - // if (!state?.serviceUrl) return 'bsky.app' - // - // return state?.serviceUrl && - // new URL(state?.serviceUrl).host === 'staging.bsky.dev' - // ? 'staging.bsky.app' - // : 'bsky.app' + if (!state?.serviceUrl) return 'bsky.app' + + return state?.serviceUrl && + new URL(state?.serviceUrl).host === 'staging.bsky.dev' + ? 'staging.bsky.app' + : 'bsky.app' }, [state?.serviceUrl]) const wasSuccessful = React.useRef(false)