Skip to content

[$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

Closed

Description

@kavimuru

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:

  1. Open the app.
  2. Navigate to the Magic Code page.
  3. Scroll down and click on either login or create a new account link.

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?

  • Android / native
  • Android / Chrome
  • iOS / native
  • iOS / Safari
  • MacOS / Chrome / Safari
  • MacOS / Desktop

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
  • Upwork Job URL: https://www.upwork.com/jobs/~01a33b3f9d19c242e2
  • Upwork Job ID: 1660556947910672384
  • Last Price Increase: 2023-05-22

Activity

  1. added
    Daily
    Bug
    on May 18, 2023
  2. melvin-bot commented on May 18, 2023

    @melvin-bot

    Triggered auto assignment to @jliexpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details.

  3. melvin-bot commented on May 18, 2023

    @melvin-bot

    Bug0 Triage Checklist (Main S/O)

    • This "bug" occurs on a supported platform (ensure Platforms in OP are ✅)
    • This bug is not a duplicate report (check E/App issues and #expensify-bugs)
      • If it is, comment with a link to the original report, close the issue and add any novel details to the original issue instead
    • This bug is reproducible using the reproduction steps in the OP. S/O
      • If the reproduction steps are clear and you're unable to reproduce the bug, check with the reporter and QA first, then close the issue.
      • If the reproduction steps aren't clear and you determine the correct steps, please update the OP.
    • This issue is filled out as thoroughly and clearly as possible
      • Pay special attention to the title, results, platforms where the bug occurs, and if the bug happens on staging/production.
    • I have reviewed and subscribed to the linked Slack conversation to ensure Slack/Github stay in sync
  4. ahmedGaber93 commented on May 18, 2023

    @ahmedGaber93
    Contributor

    Proposal

    Please 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 this.wrapperView which it may be null between re-render.
    We use Hoverable in SignInPageLayout > surround the footer links.

    onBlur={(el) => {
    if (this.wrapperView.contains(el.relatedTarget)) {
    return;
    }
    this.setIsHovered(false);
    }}

    onBlur: (el) => {
    if (!this.wrapperView.contains(el.relatedTarget)) {
    this.setIsHovered(false);
    }
    if (_.isFunction(this.props.children.props.onBlur)) {
    this.props.children.props.onBlur(el);
    }
    },

    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)

  5. jliexpensify commented on May 22, 2023

    @jliexpensify
    Contributor

    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

  6. changed the title [-] Error in console when pressing the "Login" button or the "Create a New Account" link in the footer of Magic Code page.[/-] [+] Error in JS console when pressing the "Login" button or the "Create a New Account" link in the footer of Magic Code page[/+] on May 22, 2023
  7. added
    External
    on May 22, 2023
  8. changed the title [-] Error in JS console when pressing the "Login" button or the "Create a New Account" link in the footer of Magic Code page[/-] [+][$1000] Error in JS console when pressing the "Login" button or the "Create a New Account" link in the footer of Magic Code page[/+] on May 22, 2023
  9. melvin-bot commented on May 22, 2023

    @melvin-bot
  10. melvin-bot commented on May 22, 2023

    @melvin-bot

    Current assignee @jliexpensify is eligible for the External assigner, not assigning anyone new.

  11. melvin-bot commented on May 22, 2023

    @melvin-bot

    Triggered auto assignment to Contributor-plus team member for initial proposal review - @mollfpr (External)

  12. 15 remaining items

  13. added
    Reviewing
    on May 23, 2023
  14. ahmedGaber93 commented on May 23, 2023

    @ahmedGaber93
    Contributor

    @mollfpr PR is ready for review.

  15. jliexpensify commented on May 23, 2023

    @jliexpensify
    Contributor

    @mollfpr - all good, we can keep these JS issues at $1000 for consistency's sake.

  16. mollfpr commented on May 25, 2023

    @mollfpr
    Contributor

    @dangrous @jliexpensify This issue is solved at https://github.com/Expensify/App/pull/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?

  17. dangrous commented on May 25, 2023

    @dangrous
    Contributor

    Huh, good question. I will start a discussion!

  18. jliexpensify commented on May 27, 2023

    @jliexpensify
    Contributor

    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!

  19. jliexpensify commented on May 30, 2023

    @jliexpensify
    Contributor

    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?

  20. mollfpr commented on May 31, 2023

    @mollfpr
    Contributor

    @jliexpensify sounds good to me!

  21. jliexpensify commented on May 31, 2023

    @jliexpensify
    Contributor

    @ahmedGaber93 what's your Upworks profile? Cheers

  22. ahmedGaber93 commented on May 31, 2023

    @ahmedGaber93
    Contributor

    @jliexpensify sounds good to me, too.

  23. ahmedGaber93 commented on May 31, 2023

    @ahmedGaber93
    Contributor
  24. jliexpensify commented on May 31, 2023

    @jliexpensify
    Contributor

    Cheers, invites sent - will pay once accepted.

  25. jliexpensify commented on May 31, 2023

    @jliexpensify
    Contributor

    Paid, and job closed - thanks everyone!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

BugDailyExternalReviewing

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions