diff options
author | Paul Frazee <pfrazee@gmail.com> | 2022-12-06 12:29:13 -0600 |
---|---|---|
committer | Paul Frazee <pfrazee@gmail.com> | 2022-12-06 12:29:13 -0600 |
commit | 246b0e19e183f8e751789a7e60e55bad25656a4e (patch) | |
tree | 628c8602784eb36fd4ba30f5777a14cde261a208 /src/view/com/util/UserAvatar.tsx | |
parent | d60de5e214c049853b4d997b2b0d85530c34adb8 (diff) | |
download | voidsky-246b0e19e183f8e751789a7e60e55bad25656a4e.tar.zst |
Add context to replies when appearing in the feed
Diffstat (limited to 'src/view/com/util/UserAvatar.tsx')
-rw-r--r-- | src/view/com/util/UserAvatar.tsx | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/view/com/util/UserAvatar.tsx b/src/view/com/util/UserAvatar.tsx index 2ed161253..2b2388473 100644 --- a/src/view/com/util/UserAvatar.tsx +++ b/src/view/com/util/UserAvatar.tsx @@ -21,7 +21,7 @@ export function UserAvatar({ size: number handle: string displayName: string | undefined - userAvatar: string | null + userAvatar: string | null | undefined setUserAvatar?: React.Dispatch<React.SetStateAction<string | null>> }) { const initials = getInitials(displayName || handle) @@ -92,7 +92,7 @@ export function UserAvatar({ // setUserAvatar is only passed as prop on the EditProfile component return setUserAvatar != null && IMAGES_ENABLED ? ( <TouchableOpacity onPress={handleEditAvatar}> - {userAvatar != null ? ( + {userAvatar ? ( <Image style={styles.avatarImage} source={{uri: userAvatar}} /> ) : ( renderSvg(size, initials) @@ -105,7 +105,7 @@ export function UserAvatar({ /> </View> </TouchableOpacity> - ) : userAvatar != null ? ( + ) : userAvatar ? ( <Image style={styles.avatarImage} resizeMode="stretch" |