Skip to content

Commit

Permalink
fix: if insights start and end is the same, then set the range to tha…
Browse files Browse the repository at this point in the history
…t entire day
  • Loading branch information
jdolle committed Mar 7, 2025
1 parent c5d7822 commit 7255c2b
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ export function useDateRangeController(args: {
let to = new Date(parsed.to);

if (from.getTime() === to.getTime()) {
to = subSeconds(addHours(new Date(), 20), 1);
to = subSeconds(addHours(to, 24), 1);
}

const resolved = resolveRangeAndResolution({
Expand Down

0 comments on commit 7255c2b

Please sign in to comment.