fallback if no env is set
This commit is contained in:
@@ -13,9 +13,11 @@ import {useSignupContext} from '#/screens/Signup/state'
|
|||||||
import {CaptchaWebView} from '#/screens/Signup/StepCaptcha/CaptchaWebView'
|
import {CaptchaWebView} from '#/screens/Signup/StepCaptcha/CaptchaWebView'
|
||||||
import {atoms as a, useTheme} from '#/alf'
|
import {atoms as a, useTheme} from '#/alf'
|
||||||
import {FormError} from '#/components/forms/FormError'
|
import {FormError} from '#/components/forms/FormError'
|
||||||
|
import {GCP_PROJECT_ID} from '#/env'
|
||||||
import {BackNextButtons} from '../BackNextButtons'
|
import {BackNextButtons} from '../BackNextButtons'
|
||||||
|
|
||||||
const CAPTCHA_PATH = isWeb ? '/gate/signup' : '/gate/signup/attempt-attest'
|
const CAPTCHA_PATH =
|
||||||
|
isWeb || GCP_PROJECT_ID === 0 ? '/gate/signup' : '/gate/signup/attempt-attest'
|
||||||
|
|
||||||
export function StepCaptcha() {
|
export function StepCaptcha() {
|
||||||
if (isWeb) {
|
if (isWeb) {
|
||||||
|
|||||||
Reference in New Issue
Block a user