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

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

This commit is contained in:
Xiao Yijun 2022-09-19 11:42:45 +08:00
parent cdfaf8b1c7
commit f25ae4de14
No known key found for this signature in database
GPG key ID: 6F648FC1262DB420

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.fixedLanguage
({ value }) => value === signInExperience.languageInfo.fallbackLanguage
);
}