0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-03-24 22:41:28 -05:00

fix(console): fix disable state of mfa policy options (#4776)

This commit is contained in:
Xiao Yijun 2023-10-27 14:29:02 +08:00 committed by GitHub
parent 75e5df0091
commit d221b30b35
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -58,7 +58,7 @@ function MfaForm({ data, onMfaUpdated }: Props) {
const isPolicySettingsDisabled = useMemo(() => {
if (isMfaDisabled) {
return false;
return true;
}
const { factors } = convertMfaFormToConfig(formValues);
return factors.length === 0;