Skip to content

Commit

Permalink
fix: update temp fc
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Oct 9, 2024
1 parent 9249dd5 commit 10cf207
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions public/scripts/freshchat-temp.js
Original file line number Diff line number Diff line change
Expand Up @@ -112,7 +112,7 @@ class FreshChat {
}

init = async () => {
// this.clearCookies();
this.clearCookies();

let jwt = null;
if (this.authToken) {
Expand All @@ -123,7 +123,7 @@ class FreshChat {
this.callDerivWS
);
}
if (window.fcWidget?.isLoaded()) {
if (jwt) {
window.fcWidget.user.setProperties({
cf_user_jwt: jwt,
});
Expand Down

0 comments on commit 10cf207

Please sign in to comment.