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 Owner
Current Issue Owner: @garrettmknight
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
OpenPaymentsPageAPI 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 flowUpwork Automation - Do Not Edit
Issue Owner
Current Issue Owner: @garrettmknight