Skip to content
This repository has been archived by the owner on Sep 11, 2024. It is now read-only.

Commit

Permalink
lint
Browse files Browse the repository at this point in the history
  • Loading branch information
Half-Shot committed Sep 9, 2024
1 parent 8ec6294 commit 45285f2
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/components/structures/LoggedInView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -214,9 +214,10 @@ class LoggedInView extends React.Component<IProps, IState> {
}
return;
}
const currentTimezone = SettingsStore.getValue("userTimezone")
// If the timezone is empty, then use the browser timezone.
|| Intl.DateTimeFormat().resolvedOptions().timeZone;
const currentTimezone =
SettingsStore.getValue("userTimezone") ||
// If the timezone is empty, then use the browser timezone.
Intl.DateTimeFormat().resolvedOptions().timeZone;

Check failure on line 220 in src/components/structures/LoggedInView.tsx

View workflow job for this annotation

GitHub Actions / ESLint

A function with a name starting with an uppercase letter should only be used as a constructor
if (!currentTimezone || typeof currentTimezone !== "string") {
return;
}
Expand Down

0 comments on commit 45285f2

Please sign in to comment.