Skip to content

Commit 1eb7d56

Browse files
authored
Merge pull request #41 from Vonage-Community/conshus-patch-3
Update client_js.html
2 parents 85fc31d + 4bd9be4 commit 1eb7d56

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

app-to-phone-js/client_js.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ <h1>Call Phone from App</h1>
3939
});
4040

4141
client.on('legStatusUpdate', (callId, legId, status) => {
42-
if (status.name === "ANSWERED") {
42+
if (status === "ANSWERED") {
4343
callButton.style.display = "none";
4444
hangUpButton.style.display = "inline";
4545
}
46-
if (status.name === "COMPLETED") {
46+
if (status === "COMPLETED") {
4747
callId = null;
4848
callButton.style.display = "inline";
4949
hangUpButton.style.display = "none";

0 commit comments

Comments
 (0)