applying the fix
This commit is contained in:
parent
1461d2a73d
commit
aafa840885
1 changed files with 3 additions and 3 deletions
|
|
@ -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 => {
|
||||
|
|
|
|||
Loading…
Reference in a new issue