From 5a664c5a83c4dadab21c0b1d32544d57b179fa00 Mon Sep 17 00:00:00 2001 From: leigh-mil Date: Fri, 2 Aug 2019 14:20:32 -0400 Subject: [PATCH] Default showPopError to false when there are no initial PoP dates --- js/components/clin_fields.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/js/components/clin_fields.js b/js/components/clin_fields.js index 7c9ffdea..a670bb23 100644 --- a/js/components/clin_fields.js +++ b/js/components/clin_fields.js @@ -44,6 +44,7 @@ export default { const start = new Date(this.initialStartDate) const end = new Date(this.initialEndDate) const popValidation = !this.initialStartDate ? false : start < end + const showPopValidation = !this.initialStartDate ? false : !popValidation return { clinIndex: this.initialClinIndex, @@ -54,7 +55,7 @@ export default { startDate: start, endDate: end, popValid: popValidation, - showPopError: !popValidation, + showPopError: showPopValidation, } },