Skip to content

Commit

Permalink
🚨 Fix lint warn, single quotes in clock
Browse files Browse the repository at this point in the history
  • Loading branch information
Lissy93 committed Feb 26, 2023
1 parent e48f841 commit c3749c6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Widgets/Clock.vue
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ export default {
return !this.options.hideSeconds;
},
use12Hour() {
if (typeof this.options.use12Hour === "boolean") return this.options.use12Hour;
if (typeof this.options.use12Hour === 'boolean') return this.options.use12Hour;
// this is the default, it gets computed by the DateTimeFormat implementation
return Intl.DateTimeFormat(this.timeFormat, { timeZone: this.timeZone, hour: 'numeric' }).resolvedOptions().hour12 ?? false;
},
Expand Down

0 comments on commit c3749c6

Please sign in to comment.