From 487fc5e3faa9f3229a58e2d9c8da7dc70fbdcf9d Mon Sep 17 00:00:00 2001 From: Mia <49593536+mia-pi-git@users.noreply.github.com> Date: Sat, 29 May 2021 21:02:16 -0500 Subject: [PATCH] Fix comment --- server/chat-plugins/chatlog.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/server/chat-plugins/chatlog.ts b/server/chat-plugins/chatlog.ts index e348d9ff95..8113ece259 100644 --- a/server/chat-plugins/chatlog.ts +++ b/server/chat-plugins/chatlog.ts @@ -1155,7 +1155,7 @@ export const pages: Chat.PageTable = { const parsedDate = new Date(date as string); const validDateStrings = ['all', 'alltime', 'today']; - // this will make it throw if we call toISOString, so this is only allowed if a + // this will make it throw if we call toISOString, so this is only allowed if it's a search const validSearchDate = date && validDateStrings.includes(date) && search; // this is apparently the best way to tell if a date is invalid if (date && isNaN(parsedDate.getTime()) && !validSearchDate) {