Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

nuzhy/CSIT-1704/intercom integration #413

Merged

Conversation

Nuzhy-Deriv
Copy link
Contributor

  • integrated Intercom
  • updated useFreshChat hook to load freshchat script only if the flag is true
  • handled clear conversation on logout for freshchat, intercom in both desktop, mobile

getFlags: async () => {
const [isFreshChat, isIntercom] = await Promise.all([Chat.isFreshChat(), Chat.isIntercom()]);
return { isFreshChat, isIntercom };
},
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need any error handling here and for the above .then ?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

added try catch blocks in both places

Copy link

Preview Link: https://nuzhy-intercom-integ.p2p-standalone.pages.dev

Name Result
Build status Completed ✅
Preview URL Visit Preview
Action URL Visit Action

@ameerul-deriv ameerul-deriv merged commit 19d9060 into deriv-com:master Dec 4, 2024
3 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants