🚨 Fix lint warn, single quotes in clock

This commit is contained in:
Alicia Sykes 2023-02-26 14:09:42 +00:00
parent e48f8418b9
commit c3749c6837
1 changed files with 1 additions and 1 deletions

View File

@ -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;
},