From a07b4646901933570b89298e37142d9feecf4084 Mon Sep 17 00:00:00 2001 From: Johann150 Date: Sun, 14 Aug 2022 17:32:25 +0200 Subject: [PATCH] fix missed parentheses --- packages/client/src/components/global/time.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/client/src/components/global/time.vue b/packages/client/src/components/global/time.vue index b1bd779a2..529be1603 100644 --- a/packages/client/src/components/global/time.vue +++ b/packages/client/src/components/global/time.vue @@ -20,13 +20,13 @@ const props = withDefaults(defineProps<{ }); const _time = typeof props.time === 'string' ? new Date(props.time) : props.time; -const absolute = (): string => { +const absolute = ((): string => { switch (props.format) { case 'date': return _time.toLocaleDateString(); case 'time': return _time.toLocaleTimeString(); default: return _time.toLocaleString(); } -}(); +})(); let now = $ref(new Date()); const relative = $computed(() => {