Skip to content
3 changes: 2 additions & 1 deletion src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -301,7 +301,8 @@ function WorkspaceWorkflowsPage({policy, route}: WorkspaceWorkflowsPageProps) {
const isAccountInSetupState = isBankAccountPartiallySetup(state);
const isBusinessBankAccountLocked = state === CONST.BANK_ACCOUNT.STATE.LOCKED;

const shouldShowBankAccount = (!!isBankAccountFullySetup || !!bankAccountConnectedToWorkspace) && policy?.reimbursementChoice !== CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_NO;
const shouldShowBankAccount =
(!!isBankAccountFullySetup || !!bankAccountConnectedToWorkspace) && policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_YES;
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@MelvinBot do NOT change shouldShowBankAccount logic.

Only tighten payer visibility logic here:

-                       {shouldShowBankAccount && (
+                       {shouldShowBankAccount && policy?.reimbursementChoice === CONST.POLICY.REIMBURSEMENT_CHOICES.REIMBURSEMENT_YES && (


const bankIcon = getBankIcon({bankName: bankName as BankName, isCard: false, styles});

Expand Down
Loading