@stokr/components-library 2.0.0-beta.28 → 2.0.0-beta.29
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.
|
@@ -476,12 +476,10 @@ var AuthProviderClass = /*#__PURE__*/function (_Component) {
|
|
|
476
476
|
_defineProperty(_assertThisInitialized(_this), "checkUserIsValid", function (user) {
|
|
477
477
|
if (!user) {
|
|
478
478
|
throw new Error('User is not defined');
|
|
479
|
-
}
|
|
480
|
-
if (!(user !== null && user !== void 0 && user.emailVerified) && !window.location.href.includes('resend-activation-email')) {
|
|
479
|
+
} else if (!(user !== null && user !== void 0 && user.emailVerified) && !window.location.href.includes('resend-activation-email')) {
|
|
481
480
|
window.location.href = "https://signup.".concat(process.env.REACT_APP_WEBSITE_DOMAIN, "/resend-activation-email");
|
|
482
481
|
return false;
|
|
483
|
-
}
|
|
484
|
-
if (!(user !== null && user !== void 0 && user.country) && (user === null || user === void 0 ? void 0 : user.user_type) === 'investor' && !window.location.href.includes('/welcome')) {
|
|
482
|
+
} else if (!(user !== null && user !== void 0 && user.country) && (user === null || user === void 0 ? void 0 : user.user_type) === 'investor' && !window.location.href.includes('/welcome')) {
|
|
485
483
|
window.location.href = "https://signup.".concat(process.env.REACT_APP_WEBSITE_DOMAIN, "/welcome");
|
|
486
484
|
return false;
|
|
487
485
|
}
|