diff --git a/public/scripts/freshchat.js b/public/scripts/freshchat.js index 51822fe7793ef..a56d0e1e2fa32 100644 --- a/public/scripts/freshchat.js +++ b/public/scripts/freshchat.js @@ -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; };