From fa98452fe5c5e77964289df704a578e93cba877b Mon Sep 17 00:00:00 2001 From: Xiao Yijun Date: Mon, 26 Sep 2022 17:33:37 +0800 Subject: [PATCH] Revert "fix(console): use fallback language in preview (#1960)" (#2003) This reverts commit de4c46e400bb4c3f3552a984366ec99b7032ed18. --- .../console/src/pages/SignInExperience/components/Preview.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/console/src/pages/SignInExperience/components/Preview.tsx b/packages/console/src/pages/SignInExperience/components/Preview.tsx index b221a4433..37921366b 100644 --- a/packages/console/src/pages/SignInExperience/components/Preview.tsx +++ b/packages/console/src/pages/SignInExperience/components/Preview.tsx @@ -58,7 +58,7 @@ const Preview = ({ signInExperience, className }: Props) => { const availableLanguageOptions = useMemo(() => { if (signInExperience && !signInExperience.languageInfo.autoDetect) { return languageOptions.filter( - ({ value }) => value === signInExperience.languageInfo.fallbackLanguage + ({ value }) => value === signInExperience.languageInfo.fixedLanguage ); }