diff --git a/src/components/settings_modal/helpers/number_setting.js b/src/components/settings_modal/helpers/number_setting.js index e65d8337a..8f8861c25 100644 --- a/src/components/settings_modal/helpers/number_setting.js +++ b/src/components/settings_modal/helpers/number_setting.js @@ -28,7 +28,7 @@ export default { methods: { ...Setting.methods, getValue(e) { - if (!this.truncate === 1) { + if (this.truncate === 1) { return Number.parseInt(e.target.value) } else if (this.truncate > 1) { return Math.trunc(e.target.value / this.truncate) * this.truncate