Skip to content

Commit

Permalink
adjust expensifyCardPage title
Browse files Browse the repository at this point in the history
  • Loading branch information
SzymczakJ committed Apr 5, 2024
1 parent 6bf60e9 commit a10788e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/settings/Wallet/ExpensifyCardPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -85,6 +85,7 @@ function ExpensifyCardPage({
const {isOffline} = useNetwork();
const {translate} = useLocalize();
const shouldDisplayCardDomain = !cardList?.[cardId].nameValuePairs?.issuedBy;
const pageTitle = shouldDisplayCardDomain ? translate('cardPage.expensifyCard') : cardList?.[cardId].nameValuePairs?.cardTitle ?? translate('cardPage.expensifyCard');

const [isNotFound, setIsNotFound] = useState(false);
const cardsToShow = useMemo(() => {
Expand Down Expand Up @@ -159,7 +160,7 @@ function ExpensifyCardPage({
{({safeAreaPaddingBottomStyle}) => (
<>
<HeaderWithBackButton
title={translate('cardPage.expensifyCard')}
title={pageTitle}
onBackButtonPress={() => Navigation.goBack()}
/>
<ScrollView contentContainerStyle={safeAreaPaddingBottomStyle}>
Expand Down

0 comments on commit a10788e

Please sign in to comment.