From 8c02e18f4c56cab64419e408bedb8e7974e174b1 Mon Sep 17 00:00:00 2001 From: Daniel <142214610+Dan1elBox@users.noreply.github.com> Date: Wed, 21 Aug 2024 14:04:50 +0200 Subject: [PATCH] Fix: Default value for time should be infinite #798 (#807) * fix: set default value to infinite * fix: display infinite symbol --- frontend/src/components/EstimateTimer.vue | 5 ++++- frontend/src/views/PrepareSessionPage.vue | 2 +- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/frontend/src/components/EstimateTimer.vue b/frontend/src/components/EstimateTimer.vue index b7907a5cb..131bee681 100644 --- a/frontend/src/components/EstimateTimer.vue +++ b/frontend/src/components/EstimateTimer.vue @@ -63,7 +63,10 @@ export default defineComponent({ }, methods: { formatTimer() { - if (this.startTimestamp === "" || this.duration === 0) { + if (this.duration === 0) { + return "∞"; + } + if (this.startTimestamp === "") { return ""; } const minutes = Math.floor(this.timerCount / 60); diff --git a/frontend/src/views/PrepareSessionPage.vue b/frontend/src/views/PrepareSessionPage.vue index f16d8183a..eba0c3283 100644 --- a/frontend/src/views/PrepareSessionPage.vue +++ b/frontend/src/views/PrepareSessionPage.vue @@ -284,7 +284,7 @@ export default defineComponent({ activeValues: [] as string[], position: 0, } as CardSet, - timer: 30, + timer: 0, warningWhenUnderZero: "", tabIndex: null as number | null, hostVoting: false,