From c894a57cadd6ae5fe6b63fe9ba34da125d3de359 Mon Sep 17 00:00:00 2001 From: Akansha Sakhre Date: Wed, 4 Sep 2024 10:13:35 +0530 Subject: [PATCH] Update utils.ts --- src/common/utils.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/utils.ts b/src/common/utils.ts index f79199d49..ea45e5e48 100644 --- a/src/common/utils.ts +++ b/src/common/utils.ts @@ -171,7 +171,7 @@ export const getInteractiveMessageBody = (interactiveJSON: any) => { export const getDisplayName = (contact: any) => { // let's return early with default simulator name if we are looking at simulator contact - const isSimulatorContact = isSimulator(contact?.phone); + const isSimulatorContact = isSimulator(contact.phone); if (isSimulatorContact) { return contact.name || contact.maskedPhone; }