Skip to content

Commit

Permalink
feat(wire): show wire bank name instead of user
Browse files Browse the repository at this point in the history
  • Loading branch information
mperdomo-bc committed Mar 20, 2024
1 parent d7e1433 commit 9b22a60
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -557,7 +557,7 @@ const renderBankText = (
): string | ReactElement => {
if ('agent' in value) {
// BeneficiaryType
return value.name
return value.agent.bankName ?? value.name
}
if ('details' in value && value.details?.bankName) {
// BankTransferAccountType | BSPaymentMethodType
Expand Down Expand Up @@ -901,7 +901,7 @@ const BankWire = ({
</Col>
<Col style={{ width: '100%' }}>
<Content>
<Value asTitle>{beneficiary.name}</Value>
<Value asTitle>{beneficiary.agent.bankName ?? beneficiary.name}</Value>
<Title asValue>Wire Account ending in {beneficiary.address.slice(-4)}</Title>

{type === 'DEPOSIT' && (
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ const Success: React.FC<InjectedFormProps<{}, Props> & Props> = ({
<ItemWrapper key={beneficiary.id} onClick={() => onBankClick(beneficiary)}>
<StandardRow
icon={<Image name={getBankLogoImageName(beneficiary.agent)} />}
topLeftText={beneficiary.name}
topLeftText={beneficiary.agent.bankName ?? beneficiary.name}
topRightText={beneficiary.address}
bottomLeftText={
availableAmount && (
Expand Down

0 comments on commit 9b22a60

Please sign in to comment.