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:
parent
66fbb4316a
commit
b3fb004232
1 changed files with 3 additions and 1 deletions
|
@ -25,7 +25,9 @@ export const useForgotPasswordSettings = () => {
|
||||||
const { forgotPassword } = experienceSettings ?? {};
|
const { forgotPassword } = experienceSettings ?? {};
|
||||||
|
|
||||||
return {
|
return {
|
||||||
isForgotPasswordEnabled: Boolean(forgotPassword?.email ?? forgotPassword?.sms),
|
isForgotPasswordEnabled: Boolean(
|
||||||
|
forgotPassword && (forgotPassword.email || forgotPassword.sms)
|
||||||
|
),
|
||||||
...forgotPassword,
|
...forgotPassword,
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
|
Loading…
Add table
Reference in a new issue