From a018970e00e0758e68570c3c084c2718abe83b09 Mon Sep 17 00:00:00 2001 From: Tobias Nteireho Date: Wed, 14 Feb 2024 15:02:23 -0600 Subject: [PATCH] cleanup --- src/mobile/pages/fields/field/field.js | 13 ++----------- 1 file changed, 2 insertions(+), 11 deletions(-) diff --git a/src/mobile/pages/fields/field/field.js b/src/mobile/pages/fields/field/field.js index aa5c8a47..4e55f3f6 100644 --- a/src/mobile/pages/fields/field/field.js +++ b/src/mobile/pages/fields/field/field.js @@ -312,14 +312,9 @@ export const FieldVM = DefineMap.extend('FieldVM', { // format date to (mm/dd/yyyy) from acceptable inputs value = this.normalizeDateInput($el.val()) - console.log("changed") - console.log(value) - console.log(field.min) - console.log(field.max) - console.log(field) - - + // date bounds are in 6 or 8 digit texts + // need to change to same format as value let maxDate = field.max.substr(0,2) + "/" + field.max.substr(2,2) + "/" + @@ -330,13 +325,9 @@ export const FieldVM = DefineMap.extend('FieldVM', { field.min.substr(2,2) + "/" + field.min.substr(4) - - if (Date.parse(value) < Date.parse(minDate)){ - console.log("smaller") value = minDate //field.min } else if (Date.parse(value) > Date.parse(maxDate)){ - console.log("bigger") value = maxDate //field.max }