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)
|
setDisabled(true)
|
||||||
setError(undefined)
|
setError(undefined)
|
||||||
setIsInitSubscribeOpen(true)
|
|
||||||
setIsLoginOpen(false)
|
setIsLoginOpen(false)
|
||||||
|
|
||||||
|
if (fetcher.data?.user.subscribe_status === 'inactive') {
|
||||||
|
setIsInitSubscribeOpen(true)
|
||||||
|
}
|
||||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||||
}, [fetcher])
|
}, [fetcher])
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user