mario-core 1.2.17-es-prod → 1.2.18-es-prod

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
@@ -22799,6 +22799,8 @@ var useLogin = function useLogin() {
22799
22799
  try {
22800
22800
  msalInstance.handleRedirectPromise().then(function (tokenResponse) {
22801
22801
  try {
22802
+ if (!(school !== null && school !== void 0 && school.schoolId)) return Promise.resolve();
22803
+
22802
22804
  var _temp19 = function () {
22803
22805
  if (!tokenResponse) {
22804
22806
  var accounts = msalInstance.getAllAccounts();
@@ -23273,7 +23275,8 @@ var BlockLogin = function BlockLogin(_ref) {
23273
23275
  lg: 6,
23274
23276
  md: 6,
23275
23277
  xs: 12,
23276
- className: styles["btn-login-sso"] + " pl-md-2"
23278
+ className: styles["btn-login-sso"] + " pl-md-2",
23279
+ hidden: !(school !== null && school !== void 0 && school.schoolId)
23277
23280
  }, React__default.createElement("div", {
23278
23281
  className: styles["btn-login-with-sso"],
23279
23282
  onClick: function onClick() {