From 88dcd43741d0cca11198fff1338753a1a6e9db1b Mon Sep 17 00:00:00 2001 From: Kalle <38327916+Sendouc@users.noreply.github.com> Date: Sun, 12 Oct 2025 13:38:09 +0300 Subject: [PATCH] Fix TODO --- app/features/notifications/notifications-utils.ts | 14 ++++++-------- 1 file changed, 6 insertions(+), 8 deletions(-) diff --git a/app/features/notifications/notifications-utils.ts b/app/features/notifications/notifications-utils.ts index 66ffdcc05..912f6d71d 100644 --- a/app/features/notifications/notifications-utils.ts +++ b/app/features/notifications/notifications-utils.ts @@ -104,14 +104,12 @@ export const mapMetaForTranslation = ( ) { return { ...notification.meta, - timeString: notification.meta.at // TODO: after two weeks this check can be removed (all notifications will have `at`) - ? new Date(notification.meta.at).toLocaleString(language, { - day: "numeric", - month: "numeric", - hour: "numeric", - minute: "numeric", - }) - : undefined, + timeString: new Date(notification.meta.at).toLocaleString(language, { + day: "numeric", + month: "numeric", + hour: "numeric", + minute: "numeric", + }), }; }