Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/pages/settings/Wallet/WalletPage/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ function WalletPage() {
const shouldShowEnableGlobalReimbursementsButton =
paymentMethod.selectedPaymentMethod?.additionalData?.currency === CONST.CURRENCY.USD &&
paymentMethod.selectedPaymentMethod.type === CONST.BANK_ACCOUNT.TYPE.BUSINESS &&
!paymentMethod.selectedPaymentMethod?.additionalData?.corpay?.achAuthorizationForm &&
!paymentMethod.selectedPaymentMethod?.additionalData?.verifications?.corpay &&
paymentMethod.selectedPaymentMethod?.state === CONST.BANK_ACCOUNT.STATE.OPEN;

// Determines whether or not the modal popup is mounted from the bottom of the screen instead of the side mount on Web screen
Expand Down
6 changes: 6 additions & 0 deletions src/types/onyx/BankAccount.ts
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,12 @@ type BankAccountAdditionalData = {
achAuthorizationForm?: FileObject[];
};

/** Verification statuses returned by the backend, mirroring how Classic determines status */
verifications?: {
/** Present once the account is set up with Corpay for Global Reimbursement */
corpay?: Record<string, unknown>;
};

/** First name of the bank account owner (OldDot field name) */
firstName?: string;

Expand Down
Loading