@stokr/components-library 3.0.49 → 3.0.50
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -540,7 +540,12 @@ class AuthProviderClass extends Component {
|
|
|
540
540
|
checkUserIsValid = (user) => {
|
|
541
541
|
if (!user) {
|
|
542
542
|
throw new Error("User is not defined");
|
|
543
|
-
}
|
|
543
|
+
}
|
|
544
|
+
const isOnVerifyEmailPage = window.location.href.includes("verifyEmail");
|
|
545
|
+
if (isOnVerifyEmailPage) {
|
|
546
|
+
return true;
|
|
547
|
+
}
|
|
548
|
+
if (!user?.emailVerified && !isAlreadyOnOnboardingFlow()) {
|
|
544
549
|
navigateToHref(this.props.navigate, `${getConfig("onboardingUrl")}/resend-activation-email`);
|
|
545
550
|
return false;
|
|
546
551
|
} else if (!user?.country && user?.user_type === "investor" && !isAlreadyOnOnboardingFlow()) {
|