Skip to content

Commit 5b86fc5

Browse files
committed
Bugfix: Correctly check for positive currentActionTime
1 parent 30103a1 commit 5b86fc5

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

src/components/GameStateBar.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<template>
22
<div class="game-state-bar">
3-
<span v-if="state.currentActionTimeRemaining >= 0">
3+
<span v-if="currentActionTimePositive">
44
<span v-format-ns-duration="state.currentActionTimeRemaining"
55
v-b-tooltip.hover.d500
66
title="Remaining time until lack of progress">
@@ -102,6 +102,9 @@
102102
},
103103
stageText() {
104104
return stageNames[this.state.stage];
105+
},
106+
currentActionTimePositive() {
107+
return !this.state.currentActionTimeRemaining.toString().startsWith('-');
105108
}
106109
}
107110
}

0 commit comments

Comments
 (0)