diff options
author | Ivan Chen <ivan@tagg.id> | 2021-03-25 15:00:48 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-25 15:00:48 -0400 |
commit | 99de9c8402f470ead242a81510dc2764ae7d9e66 (patch) | |
tree | 7bf2feb0f1a57f1c695ddea51afb9e95abf03f0a /src/components/profile/Avatar.tsx | |
parent | 75c08439fe04666a63431bf56e4b2fa7fb05cbbe (diff) | |
parent | 54de628b27647099170bc6d5eea7110c8dd5e8f0 (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.tsx | 7 |
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}} /> ); }; |