Skip to content

Commit

Permalink
Fix app crash if name=" "
Browse files Browse the repository at this point in the history
  • Loading branch information
kolking committed Aug 4, 2024
1 parent eee2e80 commit fa198da
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Userpic.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ const Userpic = ({

return (
<View {...props} style={[styles.root, { width: size, height: size }]}>
{name && imageSource === defaultSource ? (
{name?.trim() && imageSource === defaultSource ? (
<Initials
size={size}
name={name}
Expand Down

0 comments on commit fa198da

Please sign in to comment.