From cfa5b551a59cb6c0c9e3c524532a28a27c11c6d7 Mon Sep 17 00:00:00 2001 From: Nelson Chan Date: Thu, 26 May 2022 12:17:24 +0800 Subject: [PATCH] Feat: Make the expiry days sorted --- src/components/settings/Notifications.vue | 1 + 1 file changed, 1 insertion(+) diff --git a/src/components/settings/Notifications.vue b/src/components/settings/Notifications.vue index 9e9553c3..e2e95c23 100644 --- a/src/components/settings/Notifications.vue +++ b/src/components/settings/Notifications.vue @@ -83,6 +83,7 @@ export default { if (parsedDay != null && !isNaN(parsedDay) && parsedDay > 0) { if (!this.settings.tlsExpiryNotifyDays.includes(parsedDay)) { this.settings.tlsExpiryNotifyDays.push(parseInt(day)); + this.settings.tlsExpiryNotifyDays.sort((a, b) => a - b); this.expiryNotifInput = null; } }