dce-reactkit 3.7.32 → 3.7.34

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "dce-reactkit",
3
- "version": "3.7.32",
3
+ "version": "3.7.34",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -526,16 +526,16 @@ const genRouteHandler = (
526
526
 
527
527
  // Main log info
528
528
  const mainLogInfo: LogMainInfo = {
529
- id: `${launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
530
- userFirstName: launchInfo.userFirstName,
531
- userLastName: launchInfo.userLastName,
532
- userEmail: launchInfo.userEmail,
533
- userId: launchInfo.userId,
534
- isLearner: !!launchInfo.isLearner,
535
- isAdmin: !!launchInfo.isAdmin,
536
- isTTM: !!launchInfo.isTTM,
537
- courseId: launchInfo.courseId,
538
- courseName: launchInfo.contextLabel,
529
+ id: `${launchInfo ? 'unknown' : launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
530
+ userFirstName: (launchInfo ? 'unknown' : launchInfo.userFirstName),
531
+ userLastName: (launchInfo ? 'unknown' : launchInfo.userLastName),
532
+ userEmail: (launchInfo ? 'unknown' : launchInfo.userEmail),
533
+ userId: (launchInfo ? 'unknown' : launchInfo.userId),
534
+ isLearner: (launchInfo && !!launchInfo.isLearner),
535
+ isAdmin: (launchInfo && !!launchInfo.isAdmin),
536
+ isTTM: (launchInfo && !!launchInfo.isTTM),
537
+ courseId: (launchInfo ? 'unknown' : launchInfo.courseId),
538
+ courseName: (launchInfo ? 'unknown' : launchInfo.contextLabel),
539
539
  browser,
540
540
  device,
541
541
  year,