Skip to content

Commit

Permalink
Fix: Default value for time should be infinite #798 (#807)
Browse files Browse the repository at this point in the history
* fix: set default value to infinite

* fix: display infinite symbol
  • Loading branch information
Dan1elBox authored Aug 21, 2024
1 parent 2645548 commit 8c02e18
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 2 deletions.
5 changes: 4 additions & 1 deletion frontend/src/components/EstimateTimer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
2 changes: 1 addition & 1 deletion frontend/src/views/PrepareSessionPage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down

0 comments on commit 8c02e18

Please sign in to comment.