feat: conditionally open subscription modal based on user subscribe status in FormLogin
This commit is contained in:
@@ -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])
|
||||
|
||||
|
||||
Reference in New Issue
Block a user