From 89d0da1c64228bd569d8cb4376725149721aba05 Mon Sep 17 00:00:00 2001 From: Thomas Heartman Date: Wed, 16 Mar 2022 10:26:17 +0100 Subject: [PATCH] feat: make DATE_AFTER the default time operator --- .../ConstraintAccordionEditHeader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditHeader/ConstraintAccordionEditHeader.tsx b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditHeader/ConstraintAccordionEditHeader.tsx index e368f6f94d..9810f5f27f 100644 --- a/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditHeader/ConstraintAccordionEditHeader.tsx +++ b/frontend/src/component/common/ConstraintAccordion/ConstraintAccordionEdit/ConstraintAccordionEditHeader/ConstraintAccordionEditHeader.tsx @@ -9,7 +9,7 @@ import ConditionallyRender from '../../../ConditionallyRender'; import { allOperators, dateOperators, - DATE_BEFORE, + DATE_AFTER, IN, } from '../../../../../constants/operators'; import { SAVE } from '../ConstraintAccordionEdit'; @@ -56,7 +56,7 @@ export const ConstraintAccordionEditHeader = ({ ) { setLocalConstraint(prev => ({ ...prev, - operator: DATE_BEFORE, + operator: DATE_AFTER, value: new Date().toISOString(), })); } else if (