fix: correct subscription plan access check in login dialog
This commit is contained in:
parent
cc5331284b
commit
4c3a143338
@ -44,7 +44,7 @@ export const DialogLogin = () => {
|
||||
setError(undefined)
|
||||
setIsLoginOpen(false)
|
||||
|
||||
if (fetcher.data?.user.subscribe_plan_code === 'basic') {
|
||||
if (fetcher.data?.user.subscribe?.subscribe_plan?.code === 'basic') {
|
||||
setIsSubscribeOpen(true)
|
||||
}
|
||||
// eslint-disable-next-line react-hooks/exhaustive-deps
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user