Skip to content

Commit 76fa345

Browse files
authored
Merge pull request #40 from Vonage-Community/conshus-patch-2
Update client_alice.html
2 parents 1eb7d56 + 33097dc commit 76fa345

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app-to-app-js/client_alice.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -35,11 +35,11 @@ <h1>Outbound App Call (Alice)</h1>
3535
});
3636

3737
client.on('legStatusUpdate', (callId, legId, status) => {
38-
if (status.name === "ANSWERED") {
38+
if (status === "ANSWERED") {
3939
callButton.style.display = "none";
4040
hangUpButton.style.display = "inline";
4141
}
42-
if (status.name === "COMPLETED") {
42+
if (status === "COMPLETED") {
4343
callButton.style.display = "inline";
4444
hangUpButton.style.display = "none";
4545
}
@@ -70,4 +70,4 @@ <h1>Outbound App Call (Alice)</h1>
7070
</script>
7171
</body>
7272

73-
</html>
73+
</html>

0 commit comments

Comments
 (0)