mirror of
https://github.com/status-im/spiff-arena.git
synced 2025-03-01 09:50:35 +00:00
just ensure we have a value when creating date range objects w/ burnettk
This commit is contained in:
parent
4e6ba9eb9d
commit
78bffc8459
@ -86,8 +86,7 @@ export default function DateRangePickerWidget({
|
||||
}
|
||||
|
||||
let dateValue: (Date | null)[] | null = value;
|
||||
const dateRegex = new RegExp(DATE_RANGE_DELIMITER);
|
||||
if (value && dateRegex.test(value)) {
|
||||
if (value) {
|
||||
const [startDateString, endDateString] = value.split(DATE_RANGE_DELIMITER);
|
||||
let startDate = null;
|
||||
let endDate = null;
|
||||
|
Loading…
x
Reference in New Issue
Block a user