Skip to content

Commit

Permalink
fix(analytics function): switch nullish coalescing to a ternary to ma…
Browse files Browse the repository at this point in the history
…ke foundry Node-14 compatible
  • Loading branch information
aVileBroker committed Jan 19, 2023
1 parent 7fd1931 commit bcc8b57
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/context/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -55,8 +55,8 @@ export const defaultAnalyticsFunction: AnalyticsFunctionType = (
dateTime,
deviceInfo,
currentURL,
name: props?.name ?? 'No name provided',
analytics: props?.analytics ?? 'No analytics object provided',
name: props?.name ? 'No name provided' : null,
analytics: props?.analytics ? 'No analytics object provided' : null,
});

export const defaultAccessibilityPreferences: AccessibilityPreferences = {
Expand Down

0 comments on commit bcc8b57

Please sign in to comment.