0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-06 20:40:08 -05:00

Revert "fix(console): use fallback language in preview (#1960)" (#2003)

This reverts commit de4c46e400.
This commit is contained in:
Xiao Yijun 2022-09-26 17:33:37 +08:00 committed by GitHub
parent 10c1be6eb7
commit fa98452fe5
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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
);
}