DEV: Use radix 10 in `parseInt()` (#14973)

This commit is contained in:
Jarek Radosz 2021-11-16 16:36:44 +01:00 committed by GitHub
parent 6b5e8be25a
commit b6677fb126
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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),