From 2d79e5d89811ff466adc0de0a74a6c3903eefc86 Mon Sep 17 00:00:00 2001 From: Pattadon Date: Mon, 11 Nov 2024 11:03:58 +0700 Subject: [PATCH] fix: correct success state handling in user ID fetching logic --- src/app/business/apply/page.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/app/business/apply/page.tsx b/src/app/business/apply/page.tsx index 99832be..51078b0 100644 --- a/src/app/business/apply/page.tsx +++ b/src/app/business/apply/page.tsx @@ -102,11 +102,12 @@ export default function ApplyBusiness() { } }); } - setSucess(false); } else { + setSucess(true); console.error("User ID is undefined."); } } catch (error) { + setSucess(true); console.error("Error fetching user ID:", error); } };