You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[Awaiting Checklist] [Due for payment 2025-12-11] [$250] Expense - Download button on eReceipt opens not here page in another tab, crashes on Android #75045
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Version Number: 9.2.57-0 Reproducible in staging?: Yes Reproducible in production?: Yes If this was caught during regression testing, add the test name, ID and link from BrowserStack:#36030 Email or phone of affected tester (no customers):applausetester+ccardfeed@applause.expensifail.com Issue reported by: Applause Internal Team Device used: Mac 15.5 / Chrome App Component: Money Requests
Action Performed:
Precondition:
Workspace has card transactions with eReceipt.
Go to staging.new.expensify.com
Go to Reports > Expenses.
Open a card transaction that has eReceipt.
Click on the eReceipt.
Click Download button.
Expected Result:
Download button should be disabled since we cannot download eReceipt (according to #36030).
Actual Result:
Download button is shown on eReceipt, which opens not here page in another tab.
On Android app, it crashes.
On iOS app, it shows attachment cannot be downloaded.
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
changed the title [-]Expense - Download button on eReceipt opens not here page in another tab, crashes on Android[/-][+][$250] Expense - Download button on eReceipt opens not here page in another tab, crashes on Android[/+]on Nov 17, 2025
@etCoderDystoproposal LGTM i.e. returning shouldShowDownloadButton with false to prevent display of Download button when eReceipt exists for a transaction.
🎀👀🎀 C+ reviewed
changed the title [-][Due for payment 2025-12-11] [$250] Expense - Download button on eReceipt opens not here page in another tab, crashes on Android[/-][+][Awaiting Checklist] [Due for payment 2025-12-11] [$250] Expense - Download button on eReceipt opens not here page in another tab, crashes on Android[/+]on Dec 19, 2025
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not Required. The existing checklist is good enough to capture such issues.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
Regression Test Proposal Template
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Awaiting PaymentAuto-added when associated PR is deployed to productionBugSomething is broken. Auto assigns a BugZero manager.DailyKSv2ExternalAdded to denote the issue can be worked on by a contributor
Activity
melvin-bot commentedon Nov 13, 2025
Triggered auto assignment to @garrettmknight (
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.etCoderDysto commentedon Nov 13, 2025
Proposal
Please re-state the problem that we are trying to solve in this issue.
Expense - Download button on eReceipt opens not here page in another tab, crashes on Android
What is the root cause of that problem?
We are not checking if the receipt is eReceipt before showing download button here
App/src/pages/media/AttachmentModalScreen/AttachmentModalBaseContent/index.tsx
Lines 186 to 193 in 3ce6090
What changes do you think we should make in order to solve the problem?
We should check if the transaction is eReceipt before showing the download button
What alternative solutions did you explore? (Optional)
Reminder: Please use plain English, be brief and avoid jargon. Feel free to use images, charts or pseudo-code if necessary. Do not post large multi-line diffs or write walls of text. Do not create PRs unless you have been hired for this job.
melvin-bot commentedon Nov 17, 2025
Job added to Upwork: https://www.upwork.com/jobs/~021990495208154396643
[-]Expense - Download button on eReceipt opens not here page in another tab, crashes on Android[/-][+][$250] Expense - Download button on eReceipt opens not here page in another tab, crashes on Android[/+]melvin-bot commentedon Nov 17, 2025
Triggered auto assignment to Contributor-plus team member for initial proposal review - @rojiphil (
External)rojiphil commentedon Nov 20, 2025
@etCoderDysto proposal LGTM i.e. returning
shouldShowDownloadButtonwith false to prevent display ofDownloadbutton when eReceipt exists for a transaction.🎀👀🎀 C+ reviewed
25 remaining items
garrettmknight commentedon Dec 19, 2025
Payment Summary
[-][Due for payment 2025-12-11] [$250] Expense - Download button on eReceipt opens not here page in another tab, crashes on Android[/-][+][Awaiting Checklist] [Due for payment 2025-12-11] [$250] Expense - Download button on eReceipt opens not here page in another tab, crashes on Android[/+]garrettmknight commentedon Dec 19, 2025
@rojiphil please complete the checklist when you get a chance, thanks!
refactor: AttachmentModalScreen types and structure
rojiphil commentedon Dec 19, 2025
BugZero Checklist:
[Contributor] The offending PR has been commented on, pointing out the bug it caused and why, so the author and reviewers can learn from the mistake.
Link to comment
[Contributor] If the regression was CRITICAL (e.g. interrupts a core flow) A discussion in #expensify-open-source has been started about whether any other steps should be taken (e.g. updating the PR review checklist) in order to catch this type of bug sooner.
Link to discussion: Not Required. The existing checklist is good enough to capture such issues.
[Contributor] If it was decided to create a regression test for the bug, please propose the regression test steps using the template below to ensure the same bug will not reach production again.
[BugZero Assignee] Create a GH issue for creating/updating the regression test once above steps have been agreed upon.
Link to issue:
Regression Test Proposal
Precondition:
Test:
Do we agree 👍 or 👎
rojiphil commentedon Dec 19, 2025
@garrettmknight BZ Checklist done.
melvin-bot commentedon Dec 22, 2025
@garrettmknight Uh oh! This issue is overdue by 2 days. Don't forget to update your issues!
melvin-bot commentedon Dec 24, 2025
@garrettmknight Huh... This is 4 days overdue. Who can take care of this?
melvin-bot commentedon Dec 27, 2025
@garrettmknight Still overdue 6 days?! Let's take care of this!
quinthar commentedon Jan 17, 2026
approved $250 to @rojiphil