Skip to content

Commit 4bd9be4

Browse files
authored
Update client_js.html
updates status to be a string
1 parent efcc69e commit 4bd9be4

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)