aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Avatar.tsx
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/profile/Avatar.tsx')
-rw-r--r--src/components/profile/Avatar.tsx7
1 files changed, 2 insertions, 5 deletions
diff --git a/src/components/profile/Avatar.tsx b/src/components/profile/Avatar.tsx
index ba4ec36c..5d677983 100644
--- a/src/components/profile/Avatar.tsx
+++ b/src/components/profile/Avatar.tsx
@@ -19,11 +19,8 @@ const Avatar: React.FC<AvatarProps> = ({style, screenType, userXId}) => {
return (
<Image
style={[styles.image, style]}
- source={
- avatar
- ? {uri: avatar}
- : require('../../assets/images/avatar-placeholder.png')
- }
+ defaultSource={require('../../assets/images/avatar-placeholder.png')}
+ source={{uri: avatar}}
/>
);
};