diff --git a/src/components/DateRangePicker.js b/src/components/DateRangePicker.js index bceadcf..b0c8209 100644 --- a/src/components/DateRangePicker.js +++ b/src/components/DateRangePicker.js @@ -25,6 +25,7 @@ export function DateRangePicker({ onChangeRange }) { editableDateInputs={true} onChange={item => handleChangeDateRange(item)} ranges={[dateRange]} - dateDisplayFormat={'yyyy/MM/dd'} /> + dateDisplayFormat={'yyyy/MM/dd'} + /> ); } diff --git a/src/dataSource/herokuHolidayDataSource.js b/src/dataSource/herokuHolidayDataSource.js index bc3d6d3..1ec8b22 100644 --- a/src/dataSource/herokuHolidayDataSource.js +++ b/src/dataSource/herokuHolidayDataSource.js @@ -22,6 +22,7 @@ async function getHolidaysInMonth({ year, month }) { if (cache[apiUrl] === undefined) { const { data: { dates } } = await axios.get(apiUrl); const holidays = dates.map(readDate); + cache[apiUrl] = holidays; } return cache[apiUrl];