feat: conditionally open subscription modal based on user subscribe status in FormLogin
This commit is contained in:
parent
0577975846
commit
fd745c20a0
@ -43,8 +43,11 @@ export const FormLogin = () => {
|
||||
|
||||
setDisabled(true)
|
||||
setError(undefined)
|
||||
setIsInitSubscribeOpen(true)
|
||||
setIsLoginOpen(false)
|
||||
|
||||
if (fetcher.data?.user.subscribe_status === 'inactive') {
|
||||
setIsInitSubscribeOpen(true)
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
}, [fetcher])
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user