Relax seller onboarding redirect rule
This commit is contained in:
@ -95,10 +95,7 @@ export default function LoginPage() {
|
|||||||
const profileData = await profileRes.json();
|
const profileData = await profileRes.json();
|
||||||
const profile = profileData?.data || profileData;
|
const profile = profileData?.data || profileData;
|
||||||
|
|
||||||
const isIncomplete =
|
const isIncomplete = !profile?.storeName;
|
||||||
!profile?.storeName ||
|
|
||||||
!profile?.biography ||
|
|
||||||
!profile?.sellerImageUrl;
|
|
||||||
|
|
||||||
if (isIncomplete || data.onboardingRequired) {
|
if (isIncomplete || data.onboardingRequired) {
|
||||||
router.push("/onboarding/business");
|
router.push("/onboarding/business");
|
||||||
|
|||||||
Reference in New Issue
Block a user