From aafa8408854cbf5c42fbcaf5ff186512b2b67835 Mon Sep 17 00:00:00 2001 From: vickytechkey Date: Sun, 23 Aug 2026 18:28:38 +0530 Subject: [PATCH] applying the fix --- src/context/SellerContext.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/context/SellerContext.tsx b/src/context/SellerContext.tsx index 874fbe2..6614212 100644 --- a/src/context/SellerContext.tsx +++ b/src/context/SellerContext.tsx @@ -576,7 +576,7 @@ export const SellerProvider: React.FC<{children: React.ReactNode}> = ({ children phone_verified: phoneVerified, email_verified: emailVerified, gstin: gstin, - is_gstin_verified: isGstinVerified, + is_gstin_verified: profileStep === 2 ? true : isGstinVerified, business_type: businessType, store_slug: storeSlug, support_email: supportEmail, @@ -610,13 +610,13 @@ export const SellerProvider: React.FC<{children: React.ReactNode}> = ({ children if (profileStep === 2) { setIsGstinVerified(true) } - const isLastStep = profileStep === 6; + const isLastStep = profileStep === 3; saveProfileBackend(isLastStep) .then(() => { if (!isLastStep) { setProfileStep(prev => prev + 1) } else { - setProfileStep(7); + setIsProfileComplete(true); } }) .catch(err => {