From 2de03383f638e6d3b79cce29d94192a1ecc947fd Mon Sep 17 00:00:00 2001 From: Bartek Fabiszewski Date: Sun, 16 Feb 2020 19:24:23 +0100 Subject: [PATCH] Verify comment is not null --- js/src/positiondialogmodel.js | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/js/src/positiondialogmodel.js b/js/src/positiondialogmodel.js index 8fcd7c6..a3d8d45 100644 --- a/js/src/positiondialogmodel.js +++ b/js/src/positiondialogmodel.js @@ -63,7 +63,7 @@ export default class PositionDialogModel extends ViewModel {

- +
@@ -106,9 +106,6 @@ export default class PositionDialogModel extends ViewModel { * @return {boolean} True if valid */ validate() { - if (this.model.comment === this.position.comment) { - return false; - } - return true; + return this.model.comment !== this.position.comment; } }