From 29d98796fb01247a4d331cedf510ceffe5e36a97 Mon Sep 17 00:00:00 2001 From: Eli Ribble Date: Sun, 22 Mar 2026 17:21:01 +0000 Subject: [PATCH] Add common formatting functions --- ts/format.ts | 4 ++++ 1 file changed, 4 insertions(+) create mode 100644 ts/format.ts diff --git a/ts/format.ts b/ts/format.ts new file mode 100644 index 00000000..76de117a --- /dev/null +++ b/ts/format.ts @@ -0,0 +1,4 @@ +export function shortAddress(a: Address): string { + if (!a) return ""; + return `${a.number} ${a.street}, ${a.locality}`; +}