Skip to content

Commit

Permalink
else if nit
Browse files Browse the repository at this point in the history
  • Loading branch information
angelathe committed Dec 19, 2024
1 parent f443b01 commit d81ba81
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions containers/ecr-viewer/src/app/components/Filters.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -256,10 +256,8 @@ const FilterByDate = () => {
setFilterDateOption(
isProd ? DateRangeOptions.Last24Hours : DateRangeOptions.LastYear,
);
} else {
if (queryDateRange !== filterDateOption) {
setFilterDateOption(queryDateRange);
}
} else if (queryDateRange !== filterDateOption) {
setFilterDateOption(queryDateRange);
}
};

Expand Down

0 comments on commit d81ba81

Please sign in to comment.