diff --git a/.vscode/settings.json b/.vscode/settings.json index 9acbf50bd..908252f41 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -7,6 +7,6 @@ "autoFix": true } ], - "editor.formatOnSave": false, + "editor.formatOnSave": true, "eslint.autoFixOnSave": true } \ No newline at end of file diff --git a/webapp/components/notifications/NotificationMenu/NotificationMenu.vue b/webapp/components/notifications/NotificationMenu/NotificationMenu.vue index 5c24a82f3..1897688e1 100644 --- a/webapp/components/notifications/NotificationMenu/NotificationMenu.vue +++ b/webapp/components/notifications/NotificationMenu/NotificationMenu.vue @@ -133,11 +133,7 @@ export default { this.displayedNotifications = newNotifications .concat(this.displayedNotifications) .sort((a, b) => { - return a.createdAt === b.createdAt - ? 0 - : new Date(a.createdAt) < new Date(b.createdAt) - ? 1 - : -1 + return new Date(b.createdAt) - new Date(a.createdAt) }) this.updateOn = false