Skip to content

Commit e60ae85

Browse files
committed
use bankName
1 parent 207c3c1 commit e60ae85

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

src/components/SelectionList/Search/WithdrawalIDListItemHeader.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,8 +28,8 @@ function WithdrawalIDListItemHeader<TItem extends ListItem>({withdrawalID: withd
2828
const styles = useThemeStyles();
2929
const {translate} = useLocalize();
3030

31-
const {icon, iconSize, iconStyles} = getBankIcon({bankName: withdrawalIDItem.addressName, styles});
32-
const formattedBankName = CONST.BANK_NAMES_USER_FRIENDLY[withdrawalIDItem.addressName];
31+
const {icon, iconSize, iconStyles} = getBankIcon({bankName: withdrawalIDItem.bankName, styles});
32+
const formattedBankName = CONST.BANK_NAMES_USER_FRIENDLY[withdrawalIDItem.bankName];
3333
const formattedWithdrawalDate = DateUtils.formatWithUTCTimeZone(
3434
withdrawalIDItem.debitPosted,
3535
DateUtils.doesDateBelongToAPastYear(withdrawalIDItem.debitPosted) ? CONST.DATE.MONTH_DAY_YEAR_ABBR_FORMAT : CONST.DATE.MONTH_DAY_ABBR_FORMAT,

src/types/onyx/SearchResults.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -528,7 +528,7 @@ type SearchWithdrawalIDGroup = {
528528
accountNumber: string;
529529

530530
/** Bank name */
531-
addressName: BankName;
531+
bankName: BankName;
532532

533533
/** When the withdrawal completed */
534534
debitPosted: string;

0 commit comments

Comments
 (0)