Skip to content

Commit eb3e635

Browse files
committed
Fix app crash if name=" "
1 parent 85adf5a commit eb3e635

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/Userpic.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ const Userpic = ({
6868

6969
return (
7070
<View {...props} style={[styles.root, { width: size, height: size }]}>
71-
{name && imageSource === defaultSource ? (
71+
{name?.trim() && imageSource === defaultSource ? (
7272
<Initials
7373
size={size}
7474
name={name}

0 commit comments

Comments
 (0)