Skip to content

Commit eb65062

Browse files
committed
feat(wire): show wire bank name instead of user
1 parent d7e1433 commit eb65062

File tree

3 files changed

+4
-6
lines changed

3 files changed

+4
-6
lines changed

packages/blockchain-wallet-v4-frontend/src/components/Flyout/model.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -557,7 +557,7 @@ const renderBankText = (
557557
): string | ReactElement => {
558558
if ('agent' in value) {
559559
// BeneficiaryType
560-
return value.name
560+
return value.agent.bankName ?? value.name
561561
}
562562
if ('details' in value && value.details?.bankName) {
563563
// BankTransferAccountType | BSPaymentMethodType
@@ -901,7 +901,7 @@ const BankWire = ({
901901
</Col>
902902
<Col style={{ width: '100%' }}>
903903
<Content>
904-
<Value asTitle>{beneficiary.name}</Value>
904+
<Value asTitle>{beneficiary.agent.bankName ?? beneficiary.name}</Value>
905905
<Title asValue>Wire Account ending in {beneficiary.address.slice(-4)}</Title>
906906

907907
{type === 'DEPOSIT' && (

packages/blockchain-wallet-v4-frontend/src/modals/Brokerage/Banks/Withdraw/AddBankWireForm/Steps/Failure.tsx

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,15 @@
11
import React from 'react'
2-
import { useDispatch, useSelector } from 'react-redux'
2+
import { useDispatch } from 'react-redux'
33
import { destroy } from 'redux-form'
44

55
import { Button, Icon, Text } from 'blockchain-info-components'
66
import FlyoutFooter from 'components/Flyout/Footer'
77
import { modals } from 'data/actions'
8-
import { getModals } from 'data/modals/selectors'
98
import { ModalName } from 'data/types'
109

1110
import { Header } from '../Header'
1211
import { WIRE_BANK_FORM } from './constants'
1312
import { FinalStatusWrapper } from './StepsStyles'
14-
import { getFiatCurrency } from 'data/components/brokerage/selectors'
1513

1614
const Failure = ({ message, title }: { message?: string; title?: string }) => {
1715
const dispatch = useDispatch()

packages/blockchain-wallet-v4-frontend/src/scenes/Settings/General/LinkedWireBanks/template.success.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@ const Success: React.FC<InjectedFormProps<{}, Props> & Props> = ({
9393
<ItemWrapper key={beneficiary.id} onClick={() => onBankClick(beneficiary)}>
9494
<StandardRow
9595
icon={<Image name={getBankLogoImageName(beneficiary.agent)} />}
96-
topLeftText={beneficiary.name}
96+
topLeftText={beneficiary.agent.bankName ?? beneficiary.name}
9797
topRightText={beneficiary.address}
9898
bottomLeftText={
9999
availableAmount && (

0 commit comments

Comments
 (0)