Skip to content

Commit

Permalink
bug fixed: date was not going backwards
Browse files Browse the repository at this point in the history
  • Loading branch information
Levin committed Oct 22, 2024
1 parent b0d2561 commit 3adf743
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/algground_web/live/pages/live_home_page.ex
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ defmodule AlggroundWeb.LiveHomePage do
|> assign(:rainfall_levels, new_rainfalls)
|> assign(:reservoir_levels, new_reservoirs)
|> assign(:regions, regions)
|> assign(:date_start, Datex.Date.add(socket.assigns.date_start, 92))
|> assign(:date_end, Datex.Date.add(socket.assigns.date_end, 92))}
|> assign(:date_start, Datex.Date.add(socket.assigns.date_start, -92))
|> assign(:date_end, Datex.Date.add(socket.assigns.date_end, -92))}
end

def handle_event("forward", _params, socket) do
Expand Down

0 comments on commit 3adf743

Please sign in to comment.