mirror of
https://github.com/discourse/discourse.git
synced 2024-11-23 14:49:07 +08:00
DEV: Use radix 10 in parseInt()
(#14973)
This commit is contained in:
parent
6b5e8be25a
commit
b6677fb126
|
@ -75,7 +75,7 @@ export default Component.extend({
|
|||
const duration = moment.duration(statusUpdateAt - moment());
|
||||
const minutesLeft = duration.asMinutes();
|
||||
if (minutesLeft > 0 || isDeleteRepliesType || this.basedOnLastPost) {
|
||||
let durationMinutes = parseInt(this.durationMinutes, 0) || 0;
|
||||
let durationMinutes = parseInt(this.durationMinutes, 10) || 0;
|
||||
|
||||
let options = {
|
||||
timeLeft: duration.humanize(true),
|
||||
|
|
Loading…
Reference in New Issue
Block a user