diff --git a/frontend/src/components/ContactsPage.tsx b/frontend/src/components/ContactsPage.tsx index 561b220..a86d1a9 100644 --- a/frontend/src/components/ContactsPage.tsx +++ b/frontend/src/components/ContactsPage.tsx @@ -85,7 +85,7 @@ function DeleteBtn({ id, name }: { id: number; name?: string }) { function ContactMenu({ number, name }: { number?: string; name?: string }) { const [open, setOpen] = useState(false); const digits = (number || "").replace(/[^\d+]/g, ""); - const lookup = encodeURIComponent(digits); + const lookup = encodeURIComponent(digits.startsWith("+44") ? "0" + digits.slice(3) : digits); return ( <> @@ -121,7 +121,7 @@ function ContactMenu({ number, name }: { number?: string; name?: string }) { )} @@ -192,7 +192,7 @@ function MsgContactMenu({ number, name, callerid }: { number?: string; name?: st )}