From 442a79baa73714b0e3304537247e1e7a8aac892d Mon Sep 17 00:00:00 2001 From: Graham McIntire Date: Sun, 18 Jan 2026 12:41:39 -0600 Subject: [PATCH] fix: use proper function head for default values with multiple clauses --- lib/towerops_web/live/agent_live/helpers.ex | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/towerops_web/live/agent_live/helpers.ex b/lib/towerops_web/live/agent_live/helpers.ex index 449a6863..8efae5f5 100644 --- a/lib/towerops_web/live/agent_live/helpers.ex +++ b/lib/towerops_web/live/agent_live/helpers.ex @@ -108,9 +108,10 @@ defmodule ToweropsWeb.AgentLive.Helpers do Returns strings like "5m ago (Jan 15, 2026 at 2:34 PM EST)". """ + def format_last_seen_with_date(datetime, timezone \\ "UTC") def format_last_seen_with_date(nil, _timezone), do: "Never" - def format_last_seen_with_date(datetime, timezone \\ "UTC") do + def format_last_seen_with_date(datetime, timezone) do relative = format_last_seen(datetime) full = format_datetime(datetime, timezone) "#{relative} (#{full})"