Skip to content
This repository has been archived by the owner on Sep 5, 2023. It is now read-only.

Commit

Permalink
Fixed date selector bug in daily dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
coltoneshaw committed Dec 1, 2021
1 parent 8a5b763 commit 002c42d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/app/Pages/DailyStats/DailyStats.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ const DailyStats = () => {
label="Date"
value={value}
onChange={handleChange}
maxDate={new Date( moment.utc(value).startOf("day").valueOf())}
maxDate={new Date( moment.utc(new Date()).startOf("day").valueOf())}
renderInput={(params) => <TextField {...params} />}
/>
</Grid>
Expand Down

0 comments on commit 002c42d

Please sign in to comment.