fix: streamline error handling in dialogs by removing unnecessary return statements

This commit is contained in:
Ardeman
2025-03-15 17:33:21 +08:00
parent 7b840ce5cd
commit d767055bdb
12 changed files with 14 additions and 24 deletions
+3 -1
View File
@@ -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)