Skip to content

Commit

Permalink
Update ImageGalleryHeader.tsx (#2165)
Browse files Browse the repository at this point in the history
Updated  image gallery header component username to use photo?.user?.id instead of photo?.user?.name (because "name" is currently undefined)
  • Loading branch information
Bogdastotel committed Jul 13, 2023
1 parent 88e1573 commit 032b308
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -178,7 +178,7 @@ export const ImageGalleryHeader = <
) : (
<View style={[styles.centerContainer, centerContainer]}>
<Text style={[styles.userName, { color: black }, usernameText]}>
{photo?.user?.name || t('Unknown User')}
{photo?.user?.name || photo?.user?.id || t('Unknown User')}
</Text>
{date && <Text style={[styles.date, { color: black }, dateText]}>{date}</Text>}
</View>
Expand Down

0 comments on commit 032b308

Please sign in to comment.