Skip to content

Commit

Permalink
chore: add some code format
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Apr 16, 2023
1 parent 4f45220 commit ea508e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions src/components/tag-list/tag-table.riot
Original file line number Diff line number Diff line change
Expand Up @@ -265,8 +265,8 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
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));
Expand Down
2 changes: 1 addition & 1 deletion src/scripts/theme.js
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ea508e6

Please sign in to comment.