mirror of
https://github.com/farcasclaudiu/openclaw.git
synced 2026-06-28 17:01:53 +03:00
Style: format contact label helper
This commit is contained in:
committed by
Peter Steinberger
parent
77c7387bbd
commit
18338bc60f
+1
-2
@@ -820,8 +820,7 @@ function formatContactLabel(
|
||||
}
|
||||
|
||||
function formatPhoneList(phones?: string[]): string | undefined {
|
||||
const cleaned =
|
||||
phones?.map((phone) => phone.trim()).filter(Boolean) ?? [];
|
||||
const cleaned = phones?.map((phone) => phone.trim()).filter(Boolean) ?? [];
|
||||
if (cleaned.length === 0) return undefined;
|
||||
const [primary, ...rest] = cleaned;
|
||||
if (!primary) return undefined;
|
||||
|
||||
Reference in New Issue
Block a user