Skip to content

[HOLD for payment 2024-06-20] [$250] [HIGH] [API] OpenPaymentsPage is called whenever SettlementButton is rendered breaking 1:1:1 #42770

Description

@mountiny

Coming from here

Problem

When user is expected to pay an expense report, in the Report preview or in the expense report header we render the SettlementButton. This calls OpenPaymentsPage API in the useEffect to determine if user can use Wallet.

This breaks 1:1:1 though as we should return this information in the OpenReport call or somewhere else.

Solution

I believe the necessary data should be returned from the OpenApp. Let's remove this API call and see if there are any regressions in the payment flow

Upwork Automation - Do Not Edit
  • Upwork Job URL: https://www.upwork.com/jobs/~0150686ef5eeacf118
  • Upwork Job ID: 1795838347802320896
  • Last Price Increase: 2024-05-29
  • Automatic offers:
    • fedirjh | Reviewer | 102518263
    • abzokhattab | Contributor | 102518266
Issue OwnerCurrent Issue Owner: @garrettmknight

Metadata

Metadata

Labels

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

Type

No type

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions