From cec3e68e81ac2d59b6fe9ccdf218445ed3c5cd35 Mon Sep 17 00:00:00 2001 From: chenhang Date: Thu, 25 Jun 2026 16:07:40 +0800 Subject: [PATCH] fix(auth): show email option outside production --- src/app/auth/components/auth-other-options-dialog.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/app/auth/components/auth-other-options-dialog.tsx b/src/app/auth/components/auth-other-options-dialog.tsx index 0e89fe82..9e911936 100644 --- a/src/app/auth/components/auth-other-options-dialog.tsx +++ b/src/app/auth/components/auth-other-options-dialog.tsx @@ -30,8 +30,8 @@ export function AuthOtherOptionsDialog({ mode, googleSlot, }: AuthOtherOptionsDialogProps) { - const showDevEmailOption = - AppEnvUtil.isDevelopment() && mode === "facebook" && onEmail; + const showNonProductionEmailOption = + !AppEnvUtil.isProduction() && mode === "facebook" && onEmail; return ( ) : null} - {showDevEmailOption ? ( + {showNonProductionEmailOption ? ( } onClick={() => {