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

Console Error when UpArrow is pressed in emoji picker - reported by @sobitneupane #8458

Closed
mvtglobally opened this issue Apr 4, 2022 · 12 comments
Assignees
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review

Comments

@mvtglobally
Copy link

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 Emoji Picker.
  2. Press down arrow to highlight emoji.
  3. Now Press UpArrow

Expected Result:

there should be no console errors

Actual Result:

Console error when press UP

Workaround:

unknown

Platform:

Where is this issue occurring?

  • Web

Version Number: 1.1.46-0
Reproducible in staging?: Y
Reproducible in production?: Y
Email or phone of affected tester (no customers):
Logs: https://stackoverflow.com/c/expensify/questions/4856
Notes/Photos/Videos: Any additional supporting documentation

Screen.Recording.2022-03-24.at.17.22.16.mov

Expensify/Expensify Issue URL:
Issue reported by: @sobitneupane
Slack conversation: https://expensify.slack.com/archives/C01GTK53T8Q/p1648122317605959

View all open jobs on GitHub

@mvtglobally mvtglobally added AutoAssignerTriage Auto assign issues for triage to an available triage team member Daily KSv2 labels Apr 4, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 4, 2022

Triggered auto assignment to @NicMendonca (AutoAssignerTriage), see https://stackoverflow.com/c/expensify/questions/4749 for more details.

@melvin-bot melvin-bot bot removed the AutoAssignerTriage Auto assign issues for triage to an available triage team member label Apr 4, 2022
@sobitneupane
Copy link
Contributor

sobitneupane commented Apr 4, 2022

Solution:
Proposing solution early as I reported this issue.
As the error statement suggests, error is occuring in following code segment. Addition of the following lines of code will solve the issue.

const isHeader = e => e.header || e.spacer;
do {
newIndex += steps;
} while (isHeader(this.state.filteredEmojis[newIndex]));

           do {
               newIndex += steps;
+               if (newIndex < 0) {
+                   break;
+               }
           } while (isHeader(this.state.filteredEmojis[newIndex]));
       };

@melvin-bot
Copy link

melvin-bot bot commented Apr 4, 2022

Triggered auto assignment to @Justicea83 (Engineering), see https://stackoverflow.com/c/expensify/questions/4319 for more details.

@NicMendonca NicMendonca removed their assignment Apr 4, 2022
@Justicea83 Justicea83 added the Reviewing Has a PR in review label Apr 6, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 13, 2022

@Justicea83 Whoops! This issue is 2 days overdue. Let's get this updated quick!

@melvin-bot
Copy link

melvin-bot bot commented Apr 15, 2022

@Justicea83 Huh... This is 4 days overdue. Who can take care of this?

@melvin-bot
Copy link

melvin-bot bot commented Apr 19, 2022

@Justicea83 8 days overdue is a lot. Should this be a Weekly issue? If so, feel free to change it!

@melvin-bot
Copy link

melvin-bot bot commented Apr 21, 2022

@Justicea83 10 days overdue. Is anyone even seeing these? Hello?

@sobitneupane
Copy link
Contributor

Hello @Justicea83 @NicMendonca, Looks like code was deployed to production 9 days ago. Waiting for my payment.

@NicMendonca NicMendonca added the External Added to denote the issue can be worked on by a contributor label Apr 26, 2022
@melvin-bot
Copy link

melvin-bot bot commented Apr 26, 2022

Triggered auto assignment to @Christinadobrzyn (External), see https://stackoverflow.com/c/expensify/questions/8582 for more details.

@NicMendonca
Copy link
Contributor

@sobitneupane sorry! Can you please apply for the job so we can issue payment: https://www.upwork.com/jobs/~018897a01f0bd438e7

@sobitneupane
Copy link
Contributor

@sobitneupane sorry! Can you please apply for the job so we can issue payment: https://www.upwork.com/jobs/~018897a01f0bd438e7

Applied.

@NicMendonca
Copy link
Contributor

paid!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Daily KSv2 Engineering External Added to denote the issue can be worked on by a contributor Reviewing Has a PR in review
Projects
None yet
Development

No branches or pull requests

5 participants