From 4ffd005b09ca7bb7fc64cdf1892b0d65d7494bd4 Mon Sep 17 00:00:00 2001 From: Adorian Doran Date: Sat, 5 Jul 2025 18:53:40 +0300 Subject: [PATCH] client/context menus/insert note: fix a typo --- apps/client/src/services/note_types.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/apps/client/src/services/note_types.ts b/apps/client/src/services/note_types.ts index 939d57eee..9cb848404 100644 --- a/apps/client/src/services/note_types.ts +++ b/apps/client/src/services/note_types.ts @@ -58,7 +58,7 @@ export const NOTE_TYPES: NoteTypeMapping[] = [ ]; /** The maximum age in days for a template to be marked with the "New" badge */ -const NEW_TEMPLATE_MIN_AGE = 3; +const NEW_TEMPLATE_MAX_AGE = 3; /** The length of a day in milliseconds. */ const DAY_LENGTH = 1000 * 60 * 60 * 24; @@ -209,7 +209,7 @@ async function isNewTemplate(templateNoteId) { // Determine the difference in days between now and the template's creation date const age = (new Date().getTime() - creationDate.getTime()) / DAY_LENGTH; // Return true if the template is at most NEW_TEMPLATE_MIN_AGE days old - return (age <= NEW_TEMPLATE_MIN_AGE) + return (age <= NEW_TEMPLATE_MAX_AGE) } else { return false; }