Skip to content

Commit ebc40ab

Browse files
authored
Merge pull request #95009 from Expensify/cmartins-fixECardTable
Show card name on narrow Expensify Card table rows
2 parents 29368d1 + 1e5fd26 commit ebc40ab

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

src/components/Tables/WorkspaceExpensifyCardsTable/WorkspaceExpensifyCardsTableRow.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,7 @@ export default function WorkspaceExpensifyCardsTableRow({item, rowIndex, shouldU
3737
const session = useSession();
3838

3939
const cardholderName = getDisplayNameOrDefault(item.cardholder);
40+
const narrowLayoutSubtitle = [item.lastFourPAN, item.name].filter(Boolean).join(` ${CONST.DOT_SEPARATOR} `);
4041
const cardType = item.isVirtual ? translate('workspace.expensifyCard.virtual') : translate('workspace.expensifyCard.physical');
4142
const limitTypeLabel = translate(getTranslationKeyForLimitType(item.limitType));
4243
const formattedLimit = convertToShortDisplayString(item.limit, item.currency);
@@ -105,7 +106,7 @@ export default function WorkspaceExpensifyCardsTableRow({item, rowIndex, shouldU
105106
<TextWithTooltip
106107
shouldShowTooltip
107108
numberOfLines={1}
108-
text={item.lastFourPAN}
109+
text={narrowLayoutSubtitle}
109110
style={[styles.textLabelSupporting, styles.lh16, styles.pre, styles.mr3]}
110111
/>
111112
) : (

0 commit comments

Comments
 (0)