mario-core 2.5.8 → 2.5.9

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
@@ -5205,7 +5205,7 @@ var useNotificationList = function useNotificationList() {
5205
5205
  };
5206
5206
 
5207
5207
  var viewNotification = function viewNotification(notification) {
5208
- var _JSON$parse;
5208
+ var _JSON$parse, _JSON$parse2;
5209
5209
 
5210
5210
  var source = notification.source,
5211
5211
  extraData = notification.extraData;
@@ -5215,8 +5215,8 @@ var useNotificationList = function useNotificationList() {
5215
5215
  window.open("/player/diagnosticsurvey/" + Number(extraData));
5216
5216
  break;
5217
5217
 
5218
- case "Student Session":
5219
- window.open("/start-session/" + JSON.parse(extraData).sessionId + "/" + ((_JSON$parse = JSON.parse(extraData)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse.sessionResultId) + "/1");
5218
+ case "NewSessionCreated":
5219
+ window.open("/start-question/" + ((_JSON$parse = JSON.parse(extraData)) === null || _JSON$parse === void 0 ? void 0 : _JSON$parse[0]) + "/" + ((_JSON$parse2 = JSON.parse(extraData)) === null || _JSON$parse2 === void 0 ? void 0 : _JSON$parse2[1]));
5220
5220
  break;
5221
5221
 
5222
5222
  case "CertificateApproved":
@@ -5388,7 +5388,7 @@ var NotificationList = function NotificationList() {
5388
5388
  }
5389
5389
  })), React__default.createElement("td", {
5390
5390
  className: "text-center align-middle"
5391
- }, ["AssessmentAssignment", "Student Session", "CertificateApproved"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
5391
+ }, ["AssessmentAssignment", "NewSessionCreated", "CertificateApproved"].includes(record.source) && React__default.createElement(ai.AiOutlineEye, {
5392
5392
  className: "cursor-pointer",
5393
5393
  size: ICON_SIZE,
5394
5394
  title: "Detail",