applying the fix
All checks were successful
Beta CI/CD Pipeline / build-and-test (push) Successful in 57s
Beta CI/CD Pipeline / deploy-beta (push) Successful in 9s

This commit is contained in:
vickytechkey 2026-08-23 18:28:38 +05:30
parent 1461d2a73d
commit aafa840885

View file

@ -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 => {