Skip to content

Commit

Permalink
refactor(frontend): change or operator to nullish coalescing operator
Browse files Browse the repository at this point in the history
  • Loading branch information
ManpreetSL committed Sep 6, 2024
1 parent 3a4e916 commit feedf8d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion apps/frontend/src/components/ThemeLoader.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ const ThemeLoader = ( { name = 'Day' }: ThemeLoaderProps ) => {

return (
<link
key={`${name}-${connectedAt?.toDateString() || ''}`}
key={`${name}-${connectedAt?.toDateString() ?? ''}`}
rel="stylesheet"
href={name ? `${PRESENTER_THEMES_URL}/${name}.css` : defaultTheme}
/>
Expand Down

0 comments on commit feedf8d

Please sign in to comment.