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 +