Skip to content
Snippets Groups Projects
Unverified Commit 1c200c9b authored by MeiMei's avatar MeiMei Committed by GitHub
Browse files

Fix #6564 (#6565)

parent ce8fa8e4
No related branches found
No related tags found
No related merge requests found
......@@ -52,9 +52,9 @@ export default Vue.extend({
},
timer(): string {
return this.$t(
this.remaining > 86400 ? '_poll.remainingDays' :
this.remaining > 3600 ? '_poll.remainingHours' :
this.remaining > 60 ? '_poll.remainingMinutes' : '_poll.remainingSeconds', {
this.remaining >= 86400 ? '_poll.remainingDays' :
this.remaining >= 3600 ? '_poll.remainingHours' :
this.remaining >= 60 ? '_poll.remainingMinutes' : '_poll.remainingSeconds', {
s: Math.floor(this.remaining % 60),
m: Math.floor(this.remaining / 60) % 60,
h: Math.floor(this.remaining / 3600) % 24,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment