From 6298abe0c901e4d3849c4ab0b196072bb5580668 Mon Sep 17 00:00:00 2001 From: THIS ONE IS A LITTLE BIT TRICKY KRUB Date: Wed, 30 Oct 2024 15:07:42 +0700 Subject: [PATCH] Refactor ApplyBusiness component and fetch user data on page load --- src/app/business/apply/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/business/apply/page.tsx b/src/app/business/apply/page.tsx index cd7dbc6..0a12daf 100644 --- a/src/app/business/apply/page.tsx +++ b/src/app/business/apply/page.tsx @@ -154,8 +154,8 @@ export default function ApplyBusiness() { console.error("Error fetching user ID:", error); } }; - setSucess(true); - // fetchUserData(); + // setSucess(true); + fetchUserData(); }, []); return (