mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-03-21 18:04:39 -05:00
Fix TODO
This commit is contained in:
parent
c6e7b08ebc
commit
88dcd43741
|
|
@ -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",
|
||||
}),
|
||||
};
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user