Skip to content

Commit

Permalink
oops forgot the actual variable
Browse files Browse the repository at this point in the history
  • Loading branch information
PaulJKim committed Nov 8, 2024
1 parent 429bb18 commit 18ee9ff
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions lib/predictions/predictions.ex
Original file line number Diff line number Diff line change
Expand Up @@ -82,9 +82,10 @@ defmodule Predictions.Predictions do
do: stop_time_update["departure"]["time"] - current_time_seconds,
else: nil

if stop_time_update["passthrough_time"],
do: stop_time_update["passthrough_time"] - current_time_seconds,
else: nil
seconds_until_passthrough =
if stop_time_update["passthrough_time"],
do: stop_time_update["passthrough_time"] - current_time_seconds,
else: nil

vehicle_location = Engine.Locations.for_vehicle(vehicle_id)

Expand Down

0 comments on commit 18ee9ff

Please sign in to comment.