Skip to content

Commit 032b308

Browse files
authored
Update ImageGalleryHeader.tsx (#2165)
Updated image gallery header component username to use photo?.user?.id instead of photo?.user?.name (because "name" is currently undefined)
1 parent 88e1573 commit 032b308

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

package/src/components/ImageGallery/components/ImageGalleryHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ export const ImageGalleryHeader = <
178178
) : (
179179
<View style={[styles.centerContainer, centerContainer]}>
180180
<Text style={[styles.userName, { color: black }, usernameText]}>
181-
{photo?.user?.name || t('Unknown User')}
181+
{photo?.user?.name || photo?.user?.id || t('Unknown User')}
182182
</Text>
183183
{date && <Text style={[styles.date, { color: black }, dateText]}>{date}</Text>}
184184
</View>

0 commit comments

Comments
 (0)