changeset 1961:9b9f1d164f26

validation
author Thomas Junk <thomas.junk@intevation.de>
date Tue, 22 Jan 2019 17:25:04 +0100
parents e5c5954fbd84
children b275d5e14087
files client/src/components/ImportStretches.vue
diffstat 1 files changed, 2 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/client/src/components/ImportStretches.vue	Tue Jan 22 17:22:46 2019 +0100
+++ b/client/src/components/ImportStretches.vue	Tue Jan 22 17:25:04 2019 +0100
@@ -449,8 +449,8 @@
     ...mapState("imports", ["stretches"]),
     pointsValid() {
       if (!this.startrhm || !this.endrhm) return true;
-      const start = this.startrhm.replace(/\D+/, "");
-      const end = this.endrhm.replace(/\D+/, "");
+      const start = this.startrhm.replace(/\D+/, "") * 1;
+      const end = this.endrhm.replace(/\D+/, "") * 1;
       const result = start < end;
       return result;
     }