fix: streamline error handling in dialogs by removing unnecessary return statements
This commit is contained in:
@@ -41,7 +41,9 @@ export const DialogLogin = () => {
|
||||
return
|
||||
}
|
||||
|
||||
setIsLoginOpen(false)
|
||||
if (fetcher.data?.success) {
|
||||
setIsLoginOpen(false)
|
||||
}
|
||||
|
||||
if (fetcher.data?.user.subscribe?.subscribe_plan?.code === 'basic') {
|
||||
setIsSubscribeOpen(true)
|
||||
|
||||
Reference in New Issue
Block a user