From 873d5da2cd5d632919f0cd22965145b1b0ffd7b8 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Mon, 9 Mar 2026 23:02:11 +0000 Subject: [PATCH] Show reasonable address when we have none --- html/template/sync/communication-root.html | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/html/template/sync/communication-root.html b/html/template/sync/communication-root.html index 3039ee53..74de6c20 100644 --- a/html/template/sync/communication-root.html +++ b/html/template/sync/communication-root.html @@ -21,7 +21,15 @@ return true; } function formatAddress(a) { - return a.number + " " + a.street + ", " + a.locality; + if (a.number == "" && a.street == "") { + return "no address provided"; + } + const result = a.number + " " + a.street + ", " + a.locality; + if (result.length > 30) { + return result.substring(0, 30) + "..."; + } else { + return result; + } } function communicationsApp() { return { @@ -366,7 +374,7 @@ >