aboutsummaryrefslogtreecommitdiff
path: root/src/components/profile/Avatar.tsx
diff options
context:
space:
mode:
authorIvan Chen <ivan@tagg.id>2021-03-25 15:00:48 -0400
committerGitHub <noreply@github.com>2021-03-25 15:00:48 -0400
commit99de9c8402f470ead242a81510dc2764ae7d9e66 (patch)
tree7bf2feb0f1a57f1c695ddea51afb9e95abf03f0a /src/components/profile/Avatar.tsx
parent75c08439fe04666a63431bf56e4b2fa7fb05cbbe (diff)
parent54de628b27647099170bc6d5eea7110c8dd5e8f0 (diff)
Merge pull request #323 from IvanIFChen/tma698-api-profile
[TMA-698] api/profile
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}}
/>
);
};