dce-reactkit 3.7.33 → 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/dist/esm/index.js CHANGED
@@ -14609,16 +14609,16 @@ const genRouteHandler = (opts) => {
14609
14609
  const { timestamp, year, month, day, hour, minute, } = getTimeInfoInET();
14610
14610
  // Main log info
14611
14611
  const mainLogInfo = {
14612
- id: `${launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
14613
- userFirstName: launchInfo.userFirstName,
14614
- userLastName: launchInfo.userLastName,
14615
- userEmail: launchInfo.userEmail,
14616
- userId: launchInfo.userId,
14617
- isLearner: !!launchInfo.isLearner,
14618
- isAdmin: !!launchInfo.isAdmin,
14619
- isTTM: !!launchInfo.isTTM,
14620
- courseId: launchInfo.courseId,
14621
- courseName: launchInfo.contextLabel,
14612
+ id: `${launchInfo ? 'unknown' : launchInfo.userId}-${Date.now()}-${Math.floor(Math.random() * 100000)}-${Math.floor(Math.random() * 100000)}`,
14613
+ userFirstName: (launchInfo ? 'unknown' : launchInfo.userFirstName),
14614
+ userLastName: (launchInfo ? 'unknown' : launchInfo.userLastName),
14615
+ userEmail: (launchInfo ? 'unknown' : launchInfo.userEmail),
14616
+ userId: (launchInfo ? 'unknown' : launchInfo.userId),
14617
+ isLearner: (launchInfo && !!launchInfo.isLearner),
14618
+ isAdmin: (launchInfo && !!launchInfo.isAdmin),
14619
+ isTTM: (launchInfo && !!launchInfo.isTTM),
14620
+ courseId: (launchInfo ? 'unknown' : launchInfo.courseId),
14621
+ courseName: (launchInfo ? 'unknown' : launchInfo.contextLabel),
14622
14622
  browser,
14623
14623
  device,
14624
14624
  year,