-
Notifications
You must be signed in to change notification settings - Fork 298
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
Sergei / 67781 / live chat color #7619
Sergei / 67781 / live chat color #7619
Conversation
The latest updates on your projects. Learn more about Vercel for Git ↗︎
|
A production App ID was automatically generated for this PR. (log)
Click here to copy & paste above information.
|
🚨 Lighthouse report for the changes in this PR:
Lighthouse ran with https://deriv-app-git-fork-sergei-deriv-sergei-67781live-chat-color.binary.sx/ |
packages/core/src/App/Components/Elements/LiveChat/use-livechat.ts
Outdated
Show resolved
Hide resolved
Codecov Report
📣 This organization is not using Codecov’s GitHub App Integration. We recommend you install it so Codecov can continue to function properly for your repositories. Learn more @@ Coverage Diff @@
## master #7619 +/- ##
==========================================
- Coverage 20.73% 20.72% -0.01%
==========================================
Files 1539 1539
Lines 35916 35925 +9
Branches 7012 7012
==========================================
Hits 7447 7447
- Misses 27749 27758 +9
Partials 720 720
Help us with your feedback. Take ten seconds to tell us how you rate us. Have a feature suggestion? Share it here. |
packages/core/src/App/Components/Elements/LiveChat/use-livechat.ts
Outdated
Show resolved
Hide resolved
The base branch was changed.
Lgtm! |
@@ -101,6 +102,10 @@ const useLiveChat = (has_cookie_account = false) => { | |||
}); | |||
}; | |||
|
|||
useEffect(() => { | |||
onHistoryChange(); | |||
}, [search_params, onHistoryChange]); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
i dont think useEffect will run on window.location.search
since this is managed externally, outside of react. Can you replace with things in react-router
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yashim-deriv I can change, no problem, but I've tested it and it works with window.location.search
.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@yashim-deriv Changed to useParams(), pls check when you have time
…v/deriv-app into sergei/67781/live-chat-color
Kudos, SonarCloud Quality Gate passed! 0 Bugs No Coverage information |
⏳ Generating Lighthouse report... |
This reverts commit 37e0d18.
Changes:
Please include a summary of the change and which issue is fixed below:
When you need to add unit test
When you need to add integration test
Test coverage checklist (for reviewer)
Type of change