From cfc864cb4307597e3c0816e35e4caed8db9f35f3 Mon Sep 17 00:00:00 2001 From: Ardeman Date: Sun, 2 Mar 2025 10:18:07 +0800 Subject: [PATCH] fix: update subscription status check to use subscribe_plan_code instead of subscribe_status --- app/layouts/news/form-login.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/layouts/news/form-login.tsx b/app/layouts/news/form-login.tsx index 551ae72..fba52e7 100644 --- a/app/layouts/news/form-login.tsx +++ b/app/layouts/news/form-login.tsx @@ -45,7 +45,7 @@ export const FormLogin = () => { setError(undefined) setIsLoginOpen(false) - if (fetcher.data?.user.subscribe_status === 'inactive') { + if (fetcher.data?.user.subscribe_plan_code === 'basic') { setIsInitSubscribeOpen(true) } // eslint-disable-next-line react-hooks/exhaustive-deps