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

This commit is contained in:
vickytechkey 2026-08-23 18:38:18 +05:30
parent 44d223766e
commit 6e3cbdc228

View file

@ -10,16 +10,24 @@ export default function OnboardingWizard() {
storeSlug, setStoreSlug,
supportEmail, setSupportEmail,
supportPhone, setSupportPhone,
selectedCategories, setSelectedCategories
selectedCategories, setSelectedCategories,
saveProfileBackend
} = useSeller();
const handleNext = () => {
if (profileStep < 3) {
setProfileStep(profileStep + 1);
} else {
setIsProfileComplete(true);
setCurrentPage('dashboard');
}
const isLastStep = profileStep === 3;
saveProfileBackend(isLastStep)
.then(() => {
if (!isLastStep) {
setProfileStep(profileStep + 1);
} else {
setIsProfileComplete(true);
setCurrentPage('dashboard');
}
})
.catch((err: Error) => {
alert("Failed to save progress: " + err.message);
});
};
const handleBack = () => {