Skip to content

Commit

Permalink
Fix displayName
Browse files Browse the repository at this point in the history
  • Loading branch information
nkuoch committed Mar 26, 2024
1 parent 9af39f6 commit bb7f77c
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/pages/workspace/workflows/WorkspaceWorkflowsPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -83,11 +83,11 @@ function WorkspaceWorkflowsPage({policy, betas, route, session}: WorkspaceWorkfl
}, []);

const optionItems: ToggleSettingOptionRowProps[] = useMemo(() => {
const {accountNumber, addressName} = policy?.achAccount ?? {};
const {accountNumber, addressName, bankName} = policy?.achAccount ?? {};
const hasVBA = !!policy?.achAccount;
let bankDisplayName = addressName;
let bankDisplayName = bankName || addressName;
if (accountNumber && bankDisplayName !== accountNumber) {
bankDisplayName += accountNumber.slice(-5);
bankDisplayName += ' ' + accountNumber.slice(-5);
}
const hasReimburserEmailError = !!policy?.errorFields?.reimburserEmail;
const hasApprovalError = !!policy?.errorFields?.approvalMode;
Expand Down

0 comments on commit bb7f77c

Please sign in to comment.