Skip to content

Commit

Permalink
Merge pull request #3432 from cardano-foundation/fix/icon-tick-stakin…
Browse files Browse the repository at this point in the history
…g-delegation-lifecycle

fix: update logic when clear date
  • Loading branch information
Sotatek-TaiTruong committed May 9, 2024
2 parents d890199 + f186998 commit 37a4d4c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/components/commons/CustomFilter/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useTranslation } from "react-i18next";
import { BsFillCheckCircleFill } from "react-icons/bs";
import { useHistory } from "react-router-dom";
import { stringify } from "qs";
import { pick } from "lodash";
import { omit, pick } from "lodash";

import { useScreen } from "src/commons/hooks/useScreen";
import {
Expand Down Expand Up @@ -223,7 +223,7 @@ const CustomFilter: React.FC<Props> = (props) => {
toDate: moment(toDate, DATETIME_PARTTEN).endOf("d").utc().format(DATETIME_PARTTEN)
});
}}
onClearValue={() => setParams({ ...params, fromDate: "", toDate: "" })}
onClearValue={() => setParams(omit(params, ["fromDate", "toDate"]))}
onClose={() => setOpenDateRange(false)}
/>
</AdditionContainer>
Expand Down

0 comments on commit 37a4d4c

Please sign in to comment.