-
Notifications
You must be signed in to change notification settings - Fork 2.9k
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
[$1000] Error in JS console when pressing the "Login" button or the "Create a New Account" link in the footer of Magic Code page #19228
Comments
Triggered auto assignment to @jliexpensify ( |
Bug0 Triage Checklist (Main S/O)
|
ProposalPlease re-state the problem that we are trying to solve in this issue.Error in console when pressing the "Login" button or the "Create a New Account" link in the footer of Magic Code page. What is the root cause of that problem?in Hoverable component There is no null check here for App/src/components/Hoverable/index.js Lines 100 to 105 in 2090c05
App/src/components/Hoverable/index.js Lines 83 to 91 in 2090c05
What changes do you think we should make in order to solve the problem?add null check for this.wrapperView in onBlur statment. onBlur={(el) => {
if (!_.isNull(this.wrapperView) && this.wrapperView.contains(el.relatedTarget)) {
return;
}
this.setIsHovered(false);
}} What alternative solutions did you explore? (Optional) |
Getting a second opinion from the team here - https://expensify.slack.com/archives/C01SKUP7QR0/p1684725923013839 UPDATE: Moving to external based off this post - https://expensify.slack.com/archives/C01SKUP7QR0/p1684424938812639 |
Job added to Upwork: https://www.upwork.com/jobs/~01a33b3f9d19c242e2 |
Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new. |
Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr ( |
Triggered auto assignment to @dangrous ( |
Proposal(Originally posted on Slack with bug report) App/src/components/Hoverable/index.js Line 18 in 7ad2be0
so when this check executes. https://github.com/Expensify/App/blob/7ad2be02a9e7c9dc19e8a6556d3c8efde5ba5721/src/components/Hoverable/index.js#LL101C17-L101C17 it gives error Cannot read properties of null (reading 'contains') as the state might not be set yet and still be null
SolutionWe can simply add a null check for this.wrapperView in onBlur statement. (here src/components/Hoverable/index.js) to ensure that this.wrapperView is not null while executing the condition like this if (this.wraperView != null && this.wrapperView.contains(el.relatedTarget)) {
return;
} Result2023-05-16.23-20-38.online-video-cutter.com.1.mp4 |
ProposalPlease re-state the problem that we are trying to solve in this issue.Error in console when pressing the "Login" button or the "Create a New Account" link in the footer of Magic Code page. What is the root cause of that problem?The issue occurs due to the What changes do you think we should make in order to solve the problem?This issue can solve by adding null check for this.wrapperView in onblur event. What alternative solutions did you explore? (Optional) |
@jliexpensify @dangrous I believe the compensation for console error is $500? Proposal from @ahmedGaber93 looks good to me! 🎀 👀 🎀 C+ reviewed! |
Works for me! Assigning now.. |
📣 @ahmedGaber93 You have been assigned to this job by @dangrous! |
@Harshdeepjoshi Sorry, even though you posted the solution first in Slack, the reviewer wouldn't know that, and not possible for us to always check the Slack thread. I even didn't notice that you post a proposal in Slack, because you're not using the proposal template, and maybe that's the reason the issue creator didn't include your proposal. The idea of leaving a proposal in your bug report is, the issue creator will post it right after the Github issue is created. So, the first proposal is still what we have in the GitHub issue, and following the proposal template is essential to understand your solution. |
@mollfpr , in regards to this:
Is there a link you can share where this was discussed? This is the first time I've come across a console error, cheers! |
@jliexpensify I only have an example of it #17876 (comment) But I'm not sure because this is not a DEV error 🤷♂️ |
Cheers, getting some clarity internally here - https://expensify.slack.com/archives/C01SKUP7QR0/p1684817728719929?thread_ts=1684725923.013839&cid=C01SKUP7QR0 |
@mollfpr - all good, we can keep these JS issues at $1000 for consistency's sake. |
@dangrous @jliexpensify This issue is solved at #16052 that refactored the Hoverable component because delete this line https://github.com/Expensify/App/blob/7ad2be02a9e7c9dc19e8a6556d3c8efde5ba5721/src/components/Hoverable/index.js#LL101C17-L101C17 where the issue from. What's the action in this situation? |
Huh, good question. I will start a discussion! |
Good discussion @dangrous - it looks like we will pay this one. It looks like the other PR is still ongoing - so maybe let's pay once it's actually deployed to prod and properly tested? @mollfpr and @ahmedGaber93 , can you test this and share an update? Thanks! |
Screen.Recording.2023-05-28.at.8.30.34.PM.mov |
Thanks for checking! @mollfpr and @ahmedGaber93 - after discussing it with the team, @dangrous and I will pay 50% (i.e. $500), since this was resolved with the other PR. Sound good? |
@jliexpensify sounds good to me! |
@ahmedGaber93 what's your Upworks profile? Cheers |
@jliexpensify sounds good to me, too. |
Cheers, invites sent - will pay once accepted. |
Paid, and job closed - thanks everyone! |
If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!
Action Performed:
Expected Result:
This should cause no error in the console.
Actual Result:
An error is displayed in the console when the login button or the account creation link is clicked.
Workaround:
Can the user still use Expensify without this being fixed? Have you informed them of the workaround?
Platforms:
Which of our officially supported platforms is this issue occurring on?
Version Number: 1.3.16.3
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
Notes/Photos/Videos: Any additional supporting documentation
2023-05-16.21-14-12.online-video-cutter.com.mp4
Recording.649.mp4
Expensify/Expensify Issue URL:
Issue reported by: @Harshdeepjoshi
Slack conversation: https://expensify.slack.com/archives/C049HHMV9SM/p1684258502046179
View all open jobs on GitHub
Upwork Automation - Do Not Edit
The text was updated successfully, but these errors were encountered: