diff --git a/app/layouts/news/form-login.tsx b/app/layouts/news/form-login.tsx index 52ec536..797985b 100644 --- a/app/layouts/news/form-login.tsx +++ b/app/layouts/news/form-login.tsx @@ -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])