Skip to content

[HOLD for payment 2024-04-05] Web - Expense report - Approve button not disabled if selected before enabling Self-approval #38889

Description

@kbecciv

If you haven’t already, check out our contributing guidelines for onboarding and email contributors@expensify.com to request to join our Slack channel!


Version Number: 1.4.56-1
Reproducible in staging?: y
Reproducible in production?: n
Issue found when executing PR: #37348
Issue reported by: Applause - Internal Team

Action Performed:

precondition: user created a collect policy in OD, added a bank account, and set Direct reimbursements

  1. Log in to OD as the admin of the collect policy
  2. Navigate to the collect policy settings > Members
  3. Enable the Prevent self-approval toggle
  4. Log in to ND as the admin
  5. Open the workspace chat and create a manual request
  6. Disable the Prevent self-approval in OD
  7. Refresh the page or open the report and submit the report in ND
  8. Select Approve from the drop-down but do not click on it
  9. Enable the the Prevent self-approval toggle in OD

Expected Result:

The approve button is disabled both on the report preview and in the expense report

Actual Result:

The approve button is not disabled if it was selected before enabling Self-approval. Clicking on the Approve button results in skeleton loading

Workaround:

n/a

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

Add any screenshot/video evidence

Bug6424411_1711211397899.Recording__345.mp4

View all open jobs on GitHub

Metadata

Metadata

Assignees

Labels

Type

No type
No fields configured for issues without a type.

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions