From d81ba81e5df922704b3b8f05d4d8e18bcea2ba6e Mon Sep 17 00:00:00 2001 From: angelathe Date: Thu, 19 Dec 2024 12:40:19 -0800 Subject: [PATCH] else if nit --- containers/ecr-viewer/src/app/components/Filters.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/containers/ecr-viewer/src/app/components/Filters.tsx b/containers/ecr-viewer/src/app/components/Filters.tsx index 3e85b6612..143bfa9a1 100644 --- a/containers/ecr-viewer/src/app/components/Filters.tsx +++ b/containers/ecr-viewer/src/app/components/Filters.tsx @@ -256,10 +256,8 @@ const FilterByDate = () => { setFilterDateOption( isProd ? DateRangeOptions.Last24Hours : DateRangeOptions.LastYear, ); - } else { - if (queryDateRange !== filterDateOption) { - setFilterDateOption(queryDateRange); - } + } else if (queryDateRange !== filterDateOption) { + setFilterDateOption(queryDateRange); } };