fix: update subscription status check to use subscribe_plan_code instead of subscribe_status
This commit is contained in:
parent
b58c57a6af
commit
cfc864cb43
@ -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
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user