Fixes #12. I added comments to functions/variables/etc. as I was working through the issue but the solution to the bug itself was to change an undefined reference in setDateRange() from:
const date = initialGraphParams.date
to:
const date = initialGraphParams[targetRange].date;
The undefined ref was causing the NoDaysSelectedAlert to fire, preventing the end date from updating.
Fixes #12. I added comments to functions/variables/etc. as I was working through the issue but the solution to the bug itself was to change an undefined reference in
setDateRange()
from:const date = initialGraphParams.date
to:
const date = initialGraphParams[targetRange].date;
The undefined ref was causing the
NoDaysSelectedAlert
to fire, preventing the end date from updating.