Skip to content

Commit

Permalink
Fix date range issue in ary dashboard
Browse files Browse the repository at this point in the history
  • Loading branch information
AdityaKhatri authored and subinasr committed Apr 3, 2024
1 parent c171c20 commit 0ae84b4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/views/AryDashboard/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -304,7 +304,7 @@ function AryDashboard(props: Props) {
const handleStartDateChange = useCallback((newDate: number | undefined) => {
if (isDefined(newDate)) {
// FIXME: Add a fallback later
setStartDate(newDate);
setStartDate(Math.min(newDate, todaysDateTime));
} else {
setStartDate(undefined);
}
Expand Down

0 comments on commit 0ae84b4

Please sign in to comment.