diff --git a/frontend/src/components/ContactsPage.tsx b/frontend/src/components/ContactsPage.tsx
index e8a8cd7..561b220 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(name || number || "");
+ const lookup = encodeURIComponent(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
)}