diff --git a/lib/towerops_web/live/device_live/index.ex b/lib/towerops_web/live/device_live/index.ex index 95e070d1..2087a4db 100644 --- a/lib/towerops_web/live/device_live/index.ex +++ b/lib/towerops_web/live/device_live/index.ex @@ -283,7 +283,7 @@ defmodule ToweropsWeb.DeviceLive.Index do end defp tick_interval_ms do - if Mix.env() == :test, do: :infinity, else: to_timeout(second: 15) + if Application.get_env(:towerops, :env) == :test, do: :infinity, else: to_timeout(second: 15) end defp schedule_tick do