fix daterange presets

This commit is contained in:
dannyrb authored and James A. Petts committed 2020-05-15 14:02:00 +02:00
1 parent 8f284aafac
commit 92923789e5
2 files changed
+7 -5

No files matched your search

@@ -62,8 +62,8 @@ const DateRange = props => {
className={`m-0 py-2 px-3 bg-primary-main border-0 rounded text-white text-base transition duration-300 hover:opacity-80`}
onClick={() =>
onChange({
startDate: start,
endDate: end,
startDate: start ? start.format('YYYYMMDD') : undefined,
endDate: end ? end.format('YYYYMMDD') : undefined,
preset: true,
})
}