mario-core 1.2.24-es-prod → 1.2.25-es-release

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.
package/dist/index.js CHANGED
@@ -23156,7 +23156,7 @@ var BlockLogin = function BlockLogin(_ref) {
23156
23156
  var subDomain = hostName === null || hostName === void 0 ? void 0 : (_hostName$split = hostName.split(".marioforme.com")) === null || _hostName$split === void 0 ? void 0 : (_hostName$split$ = _hostName$split[0]) === null || _hostName$split$ === void 0 ? void 0 : _hostName$split$.replace(/-es$|^es-/, "");
23157
23157
  var emailDomain = (_email$split = email.split("@")) === null || _email$split === void 0 ? void 0 : _email$split[1];
23158
23158
 
23159
- if (!emailDomain.includes(subDomain) && !emailDomain.includes(extensionEmail)) {
23159
+ if (!emailDomain.includes(subDomain) && !emailDomain.includes(!(extensionEmail !== null && extensionEmail !== void 0 && extensionEmail.trim()) ? subDomain : extensionEmail)) {
23160
23160
  alert("The email address you used does not match the login information in the database. Please check that you are using your school assigned email address to log into MARIO for Me. If you have further trouble please notify your school site administrator");
23161
23161
  return;
23162
23162
  }