Skip to content

Commit

Permalink
refactor(typescript): apply pull request feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
pac-guerreiro committed Dec 7, 2023
1 parent 20df6e7 commit 839e381
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/CardPreview.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ function CardPreview({privatePersonalDetails, session}: CardPreviewProps) {
const styles = useThemeStyles();
usePrivatePersonalDetails();
const {legalFirstName, legalLastName} = privatePersonalDetails ?? {};
const cardHolder = legalFirstName && legalLastName ? `${legalFirstName} ${legalLastName}` : session?.email;
const cardHolder = legalFirstName && legalLastName ? `${legalFirstName} ${legalLastName}` : session?.email ?? '';

return (
<View style={styles.walletCard}>
Expand Down

0 comments on commit 839e381

Please sign in to comment.