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

[Hold PR #46869] Pay someone - App crashes when proceeding to confirmation page during pay someone flow #46876

Closed
6 tasks done
m-natarajan opened this issue Aug 6, 2024 · 8 comments
Assignees
Labels
Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2

Comments

@m-natarajan
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!


Issue found when validating #46629

Version Number:
Reproducible in staging?:
Reproducible in production?:
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:

  1. Go to staging.new.expensify.com
  2. Go to DM.
  3. Click +
  4. Click Pay.
  5. Enter amount.
  6. Click Next.

Expected Result:

App will not crash.

Actual Result:

App crashes.

Workaround:

unknown

Platforms:

Which of our officially supported platforms is this issue occurring on?

  • Android: Native
  • Android: mWeb Chrome
  • iOS: Native
  • iOS: mWeb Safari
  • MacOS: Chrome / Safari
  • MacOS: Desktop

Screenshots/Videos

Bug6563114_1722930469626!staging.new.expensify.com-1722930458808.txt

Bug6563114_1722930357149.20240806_154434.mp4

View all open jobs on GitHub

@m-natarajan m-natarajan added Daily KSv2 Bug Something is broken. Auto assigns a BugZero manager. labels Aug 6, 2024
Copy link

melvin-bot bot commented Aug 6, 2024

Triggered auto assignment to @trjExpensify (Bug), see https://stackoverflow.com/c/expensify/questions/14418 for more details. Please add this bug to a GH project, as outlined in the SO.

@m-natarajan
Copy link
Author

m-natarajan commented Aug 6, 2024

@trjExpensify FYI I haven't added the External label as I wasn't 100% sure about this issue. Please take a look and add the label if you agree it's a bug and can be handled by external contributors

@m-natarajan
Copy link
Author

We think that this bug might be related to #wave-collect - Release 1

@Krishna2323
Copy link
Contributor

Krishna2323 commented Aug 6, 2024

Proposal

Please re-state the problem that we are trying to solve in this issue.

Pay someone - App crashes when proceeding to confirmation page during pay someone flow

What is the root cause of that problem?

We are accessing comment from transaction?.comment without optional chaining.

const trimmedComment = (transaction?.comment.comment ?? '').trim();

const trimmedComment = transaction?.comment?.comment ? transaction.comment.comment.trim() : '';

const trimmedComment = (transaction?.comment.comment ?? '').trim();

What changes do you think we should make in order to solve the problem?

Update to transaction?.comment?.comment

What alternative solutions did you explore? (Optional)

@nyomanjyotisa
Copy link
Contributor

Proposal

Please re-state the problem that we are trying to solve in this issue.

App crashes when proceeding to confirmation page during pay someone flow

What is the root cause of that problem?

The transaction?.comment is undefined here

iouComment={transaction?.comment.comment ?? ''}

What changes do you think we should make in order to solve the problem?

Change to

iouComment={transaction?.comment?.comment ?? ''}

What alternative solutions did you explore? (Optional)

@Krishna2323
Copy link
Contributor

This will be fixed here.

@trjExpensify trjExpensify added Weekly KSv2 and removed Daily KSv2 labels Aug 7, 2024
@trjExpensify trjExpensify changed the title Pay someone - App crashes when proceeding to confirmation page during pay someone flow [Hold PR #46869] Pay someone - App crashes when proceeding to confirmation page during pay someone flow Aug 7, 2024
@trjExpensify
Copy link
Contributor

Put it on hold for that PR.

@trjExpensify
Copy link
Contributor

Confirmed this is no longer reproducible, closing.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Bug Something is broken. Auto assigns a BugZero manager. Weekly KSv2
Projects
None yet
Development

No branches or pull requests

4 participants