Skip to content

Commit

Permalink
Merge pull request #48625 from daledah/fix/48029
Browse files Browse the repository at this point in the history
  • Loading branch information
blimpich authored Sep 10, 2024
2 parents b0b52e0 + 92bd164 commit a56b7c2
Showing 1 changed file with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,8 @@ function EnableBankAccount({reimbursementAccount, onBackButtonPress}: EnableBank
const {translate} = useLocalize();

const achData = reimbursementAccount?.achData ?? {};
const {icon, iconSize} = getBankIcon({bankName: achData.bankName, styles});
const {icon, iconSize, iconStyles} = getBankIcon({bankName: achData.bankName, styles});

const formattedBankAccountNumber = achData.accountNumber ? `${translate('bankAccount.accountEnding')} ${achData.accountNumber.slice(-4)}` : '';
const bankAccountOwnerName = achData.addressName;
const errors = reimbursementAccount?.errors ?? {};
Expand Down Expand Up @@ -66,11 +67,12 @@ function EnableBankAccount({reimbursementAccount, onBackButtonPress}: EnableBank
title={bankAccountOwnerName}
description={formattedBankAccountNumber}
icon={icon}
iconStyles={iconStyles}
iconWidth={iconSize}
iconHeight={iconSize}
interactive={false}
displayInDefaultIconColor
wrapperStyle={[styles.cardMenuItem, styles.mv3]}
wrapperStyle={[styles.ph0, styles.mv3, styles.h13]}
/>
<Text style={[styles.mv3]}>{translate('workspace.bankAccount.accountDescriptionWithCards')}</Text>
<MenuItem
Expand Down

0 comments on commit a56b7c2

Please sign in to comment.