Skip to content

Commit

Permalink
fix merge error
Browse files Browse the repository at this point in the history
  • Loading branch information
rleed committed Sep 26, 2023
1 parent 8f53dd0 commit b47cfc4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/search.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,7 +106,7 @@ export default function Search ({ sub }) {
<Select
groupClassName='mb-0 ms-2'
onChange={(formik, e) => {
search({ ...formik?.values, when: e.target.value, from: from || dayMonthYear(new Date()), to: to || dayMonthYear(new Date()) })
search({ ...formik?.values, when: e.target.value, from: from || new Date().toISOString(), to: to || new Date().toISOString() })
setDatePicker(e.target.value === 'custom')
if (e.target.value === 'custom') setRange({ start: new Date(), end: new Date() })
}}
Expand Down

0 comments on commit b47cfc4

Please sign in to comment.