openvidu-insecure-react: Fixed undefined exception

This commit is contained in:
csantosm 2021-05-07 11:17:11 +02:00
parent 25c9e3c30d
commit 122a0ab52b

View File

@ -296,7 +296,7 @@ class App extends Component {
})
.catch((response) => {
var error = Object.assign({}, response);
if (error.response.status === 409) {
if (error?.response?.status === 409) {
resolve(sessionId);
} else {
console.log(error);