From 33097dcaf687afc4f3e110e7640acf4157725d3f Mon Sep 17 00:00:00 2001 From: Dwane Hemmings Date: Wed, 20 Mar 2024 15:54:19 -0400 Subject: [PATCH] Update client_alice.html updates status to be a string --- app-to-app-js/client_alice.html | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/app-to-app-js/client_alice.html b/app-to-app-js/client_alice.html index bbeac25..1ef5753 100644 --- a/app-to-app-js/client_alice.html +++ b/app-to-app-js/client_alice.html @@ -35,11 +35,11 @@

Outbound App Call (Alice)

}); client.on('legStatusUpdate', (callId, legId, status) => { - if (status.name === "ANSWERED") { + if (status === "ANSWERED") { callButton.style.display = "none"; hangUpButton.style.display = "inline"; } - if (status.name === "COMPLETED") { + if (status === "COMPLETED") { callButton.style.display = "inline"; hangUpButton.style.display = "none"; } @@ -70,4 +70,4 @@

Outbound App Call (Alice)

- \ No newline at end of file +