diff --git a/src/components/tag-list/tag-table.riot b/src/components/tag-list/tag-table.riot index 6f5d1f7..fedb4e9 100644 --- a/src/components/tag-list/tag-table.riot +++ b/src/components/tag-list/tag-table.riot @@ -265,8 +265,8 @@ along with this program. If not, see . if (this.state.orderType === 'date') { sortedTags.sort((e1, e2) => !this.state.desc - ? (e2.creationDate?.getTime()||0) - (e1.creationDate?.getTime()||0) - : (e1.creationDate?.getTime()||0) - (e2.creationDate?.getTime()||0) + ? (e2.creationDate?.getTime() || 0) - (e1.creationDate?.getTime() || 0) + : (e1.creationDate?.getTime() || 0) - (e2.creationDate?.getTime() || 0) ); } else if (this.state.orderType === 'size') { sortedTags.sort((e1, e2) => (!this.state.desc ? e2.size - e1.size : e1.size - e2.size)); diff --git a/src/scripts/theme.js b/src/scripts/theme.js index 292bedc..673f48d 100644 --- a/src/scripts/theme.js +++ b/src/scripts/theme.js @@ -34,7 +34,7 @@ const normalizeKey = (k) => .replace(/^theme-/, ''); const preferDarkMode = ({ theme }) => { - if (theme === 'auto' || theme === "") { + if (theme === 'auto' || theme === '') { switch (localStorage.getItem(LOCAL_STORAGE_THEME)) { case 'dark': return true;