From b6a6f45f456042c9f75476bcea48fdb4eb94bd29 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Torjus=20H=C3=A5kestad?= Date: Sat, 10 Apr 2021 13:54:21 +0200 Subject: [PATCH] Try to fix formatter again --- web/frontend/src/components/AttemptList.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/web/frontend/src/components/AttemptList.vue b/web/frontend/src/components/AttemptList.vue index a0f21a2..6a32655 100644 --- a/web/frontend/src/components/AttemptList.vue +++ b/web/frontend/src/components/AttemptList.vue @@ -12,9 +12,10 @@ import { Component, Prop, Vue } from 'vue-property-decorator'; import { BvTableFieldArray, BvTableFormatterCallback } from 'bootstrap-vue'; import { LoginAttempt } from '@/apiary/apiary'; -const timeFormatter: BvTableFormatterCallback = (value: string) => { +const timeFormatter: BvTableFormatterCallback = (value: string): string => { const d = new Date(value); - return `${d.getUTCHours}:${d.getUTCMinutes}:${d.getUTCSeconds}`; + const s = `${d.getUTCHours}:${d.getUTCMinutes}:${d.getUTCSeconds}`; + return s; }; @Component