Skip to content

Commit

Permalink
fix: unhandled when undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
prince-deriv committed Oct 16, 2024
1 parent 15a57cb commit 9a4a8ed
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion public/scripts/freshchat.js
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ const getJWT = async (hostname, uuid, getTokenForWS, callDerivWS) => {
},
token
);
jwt = result.service_token.freshworks_user_jwt.token;
jwt = result?.service_token?.freshworks_user_jwt?.token;

return jwt;
};
Expand Down

0 comments on commit 9a4a8ed

Please sign in to comment.