0
Fork 0
mirror of https://github.com/logto-io/logto.git synced 2025-01-20 21:32:31 -05:00

fix(ui): forget pwd should be enabled correctly

This commit is contained in:
Gao Sun 2022-12-13 15:49:58 +08:00
parent 66fbb4316a
commit b3fb004232
No known key found for this signature in database
GPG key ID: 13EBE123E4773688

View file

@ -25,7 +25,9 @@ export const useForgotPasswordSettings = () => {
const { forgotPassword } = experienceSettings ?? {};
return {
isForgotPasswordEnabled: Boolean(forgotPassword?.email ?? forgotPassword?.sms),
isForgotPasswordEnabled: Boolean(
forgotPassword && (forgotPassword.email || forgotPassword.sms)
),
...forgotPassword,
};
};