dce-reactkit 3.9.10 → 3.10.0

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.9.10",
3
+ "version": "3.10.0",
4
4
  "description": "Shared components for Harvard DCE apps",
5
5
  "main": "dist/cjs/index.js",
6
6
  "module": "dist/esm/index.js",
@@ -625,16 +625,16 @@ const genRouteHandler = (
625
625
 
626
626
  // Main log info
627
627
  const mainLogInfo: LogMainInfo = {
628
- id: `${launchInfo ? 'unknown' : launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
629
- userFirstName: (launchInfo ? 'unknown' : launchInfo.userFirstName),
630
- userLastName: (launchInfo ? 'unknown' : launchInfo.userLastName),
631
- userEmail: (launchInfo ? 'unknown' : launchInfo.userEmail),
632
- userId: (launchInfo ? 'unknown' : launchInfo.userId),
628
+ id: `${launchInfo ? launchInfo.userId : 'unknown'}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
629
+ userFirstName: (launchInfo ? launchInfo.userFirstName: 'unknown'),
630
+ userLastName: (launchInfo ? launchInfo.userLastName : 'unknown'),
631
+ userEmail: (launchInfo ? launchInfo.userEmail : 'unknown'),
632
+ userId: (launchInfo ? launchInfo.userId : 'unknown'),
633
633
  isLearner: (launchInfo && !!launchInfo.isLearner),
634
634
  isAdmin: (launchInfo && !!launchInfo.isAdmin),
635
635
  isTTM: (launchInfo && !!launchInfo.isTTM),
636
- courseId: (launchInfo ? 'unknown' : launchInfo.courseId),
637
- courseName: (launchInfo ? 'unknown' : launchInfo.contextLabel),
636
+ courseId: (launchInfo ? launchInfo.courseId : 'unknown' ),
637
+ courseName: (launchInfo ? launchInfo.contextLabel : 'unknown'),
638
638
  browser,
639
639
  device,
640
640
  year,