From 10cf20780cdca6b42acf0c7693c254f67cdf9aad Mon Sep 17 00:00:00 2001 From: Nuzhy-Deriv Date: Wed, 9 Oct 2024 13:56:10 +0800 Subject: [PATCH] fix: update temp fc --- public/scripts/freshchat-temp.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/public/scripts/freshchat-temp.js b/public/scripts/freshchat-temp.js index adc7451d1b21e..2958a80b59ecf 100644 --- a/public/scripts/freshchat-temp.js +++ b/public/scripts/freshchat-temp.js @@ -112,7 +112,7 @@ class FreshChat { } init = async () => { - // this.clearCookies(); + this.clearCookies(); let jwt = null; if (this.authToken) { @@ -123,7 +123,7 @@ class FreshChat { this.callDerivWS ); } - if (window.fcWidget?.isLoaded()) { + if (jwt) { window.fcWidget.user.setProperties({ cf_user_jwt: jwt, });