fix: update subscription status check to use subscribe_plan_code instead of subscribe_status

This commit is contained in:
Ardeman 2025-03-02 10:18:07 +08:00
parent b58c57a6af
commit cfc864cb43

View File

@ -45,7 +45,7 @@ export const FormLogin = () => {
setError(undefined) setError(undefined)
setIsLoginOpen(false) setIsLoginOpen(false)
if (fetcher.data?.user.subscribe_status === 'inactive') { if (fetcher.data?.user.subscribe_plan_code === 'basic') {
setIsInitSubscribeOpen(true) setIsInitSubscribeOpen(true)
} }
// eslint-disable-next-line react-hooks/exhaustive-deps // eslint-disable-next-line react-hooks/exhaustive-deps