-
Notifications
You must be signed in to change notification settings - Fork 3k
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
[PAID] [LOW] [$500] Web - Chat - Console error shows up when opening emoji picker and then clicking on send button #32743
Comments
Job added to Upwork: https://www.upwork.com/jobs/~017a72f5508e45e17d |
Triggered auto assignment to @strepanier03 ( |
Bug0 Triage Checklist (Main S/O)
|
Triggered auto assignment to Contributor-plus team member for initial proposal review - @hoangzinh ( |
ProposalPlease re-state the problem that we are trying to solve in this issue.An unescaped method is showing as an console error. What is the root cause of that problem?The App/src/components/PopoverProvider/index.tsx Lines 15 to 26 in d4fb27a
What changes do you think we should make in order to solve the problem?use optional chaining within the
Some reading material on the issue I've read in the past: https://stackoverflow.com/questions/62603498/optional-chaining-cause-unexpected-result-when-used-in-if-statement |
I can't reproduce |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Chat - Console error shows up when opening emoji picker and then clicking on send button What is the root cause of that problem?The main problem is that we are accessing an empty ref (activePopoverRef.current === null ) And when we try to check this value What changes do you think we should make in order to solve the problem?We can update this code like
App/src/components/PopoverProvider/index.tsx Lines 15 to 26 in d4fb27a
What alternative solutions did you explore? (Optional)NA |
I can reproduce but I'm not sure of the priority of this. I am raising this internally and will follow up. |
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error shows up when opening emoji picker and then clicking on send button. What is the root cause of that problem?Short answerThe ref here is null at the time it is invoked. Long answerBut if that's the case, why didn't the above line When the popover opens, we bind the callback App/src/components/PopoverWithoutOverlay/index.js Lines 76 to 80 in a9cdc0b
Later when we press App/src/components/PopoverProvider/index.tsx Lines 20 to 24 in 142212f
What changes do you think we should make in order to solve the problem?Use optional chaining here: if (activePopoverRef.current?.onCloseCallback) {
activePopoverRef.current.onCloseCallback();
} We should not move the What alternative solutions did you explore? (Optional)NA |
ProposalPlease re-state the problem that we are trying to solve in this issue.Web - Chat - Console error shows up when opening emoji picker and then clicking on send button What is the root cause of that problem?App/src/components/PopoverProvider/index.tsx Lines 15 to 26 in d4fb27a
At first glance, there's no reason for
But the issue is in this line:
This This is the main root cause What changes do you think we should make in order to solve the problem?change call order like this:
What alternative solutions did you explore? (Optional)remove all |
@strepanier03 let's us know if we want to fix this issue. |
I will update as soon as I have an internal consensus, thanks! |
ProposalPlease re-state the problem that we are trying to solve in this issue.Console error for closing the emoji picker What is the root cause of that problem?Earlier in this PR we have set the App/src/components/PopoverProvider/index.tsx Lines 15 to 23 in 298d9d2
What changes do you think we should make in order to solve the problem?We can get rid of the |
@hoangzinh, @strepanier03 Whoops! This issue is 2 days overdue. Let's get this updated quick! |
📣 It's been a week! Do we have any satisfactory proposals yet? Do we need to adjust the bounty for this issue? 💸 |
@hoangzinh, @strepanier03 Still overdue 6 days?! Let's take care of this! |
All right, we would like to move forward and fix this error. |
Discussing here still. |
@strepanier03 does it mean I can start to review existing proposals or still wait for final call? |
@hoangzinh - Please pause until next week. I'll update this on the 28th when I'm back in the office. |
@hoangzinh @strepanier03 this issue was created 2 weeks ago. Are we close to approving a proposal? If not, what's blocking us from getting this issue assigned? Don't hesitate to create a thread in #expensify-open-source to align faster in real time. Thanks! |
📣 @hoangzinh 🎉 An offer has been automatically sent to your Upwork account for the Reviewer role 🎉 Thanks for contributing to the Expensify app! |
📣 @mkhutornyi 🎉 An offer has been automatically sent to your Upwork account for the Contributor role 🎉 Thanks for contributing to the Expensify app! Offer link |
|
The solution for this issue has been 🚀 deployed to production 🚀 in version 1.4.37-7 and is now subject to a 7-day regression period 📆. Here is the list of pull requests that resolve this issue: If no regressions arise, payment will be issued on 2024-02-14. 🎊 For reference, here are some details about the assignees on this issue:
|
BugZero Checklist: The PR fixing this issue has been merged! The following checklist (instructions) will need to be completed before the issue can be closed:
|
Looks like we're good until tomorrow. @hoangzinh feel free to finish the checklist and I'll handle the reg test. |
@mkhutornyi - I've paid you via Upwork and closed the contract, thanks for your help resolving this GH! @hoangzinh - I'll check later today for the checklist and move forward when it's done. |
BugZero Checklist:
|
Got it, thanks @hoangzinh I'll finish this up now. |
Okay, paid and contract ended. Thanks again for helping to get this finished @hoangzinh and @mkhutornyi 🙌 |
If you haven’t already, check out our contributing guidelines for onboarding and email [email protected] to request to join our Slack channel!
Version Number: 1.4.10-0
Reproducible in staging?: Y
Reproducible in production?: Y
If this was caught during regression testing, add the test name, ID and link from TestRail:
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Expensify/Expensify Issue URL:
Issue reported by: Applause - Internal Team
Slack conversation:
Action Performed:
Expected Result:
No console error
Actual Result:
Console error shows up - Uncaught TypeError: Cannot read properties of null (reading 'onCloseCallback')
Workaround:
Unknown
Platforms:
Which of our officially supported platforms is this issue occurring on?
Screenshots/Videos
Add any screenshot/video evidence
Bug6306170_1702063410475.20231209_014314__1_.mp4
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: