Open rulai-ymwang opened 4 years ago
If no tasks given, the firstTaskTime will be Number.MAX_SAFE_INTEGER and the lastTaskTime will be 0. They are both invalid time ms.
We can set reasonable values to them when no tasks given. Such as setting the default time range from today to 7 days later.
Thank you it does solve let tasks = [];?
let tasks = [];
@BirukTes yes. it does
If no tasks given, the firstTaskTime will be Number.MAX_SAFE_INTEGER and the lastTaskTime will be 0. They are both invalid time ms.
We can set reasonable values to them when no tasks given. Such as setting the default time range from today to 7 days later.