fix additional channel creator edit error

This commit is contained in:
Akinwale Ariwodola 2020-01-22 21:21:01 +01:00
parent 82d15f0c7f
commit dc0b06ce55

View file

@ -905,7 +905,7 @@ export default class ChannelCreator extends React.PureComponent {
style={channelCreatorStyle.coverImage} style={channelCreatorStyle.coverImage}
resizeMode={'cover'} resizeMode={'cover'}
source={ source={
coverImageUrl && coverImageUrl.trim().length > 0 !!coverImageUrl && coverImageUrl.trim().length > 0
? { uri: coverImageUrl } ? { uri: coverImageUrl }
: require('../../assets/default_channel_cover.png') : require('../../assets/default_channel_cover.png')
} }
@ -924,7 +924,7 @@ export default class ChannelCreator extends React.PureComponent {
<View style={[channelCreatorStyle.avatarImageContainer, autoStyle]}> <View style={[channelCreatorStyle.avatarImageContainer, autoStyle]}>
<TouchableOpacity style={channelCreatorStyle.avatarTouchArea} onPress={this.onAvatarImagePress}> <TouchableOpacity style={channelCreatorStyle.avatarTouchArea} onPress={this.onAvatarImagePress}>
{thumbnailUrl !== null && thumbnailUrl.trim().length > 0 && ( {!!thumbnailUrl && thumbnailUrl.trim().length > 0 && (
<Image <Image
style={channelCreatorStyle.avatarImage} style={channelCreatorStyle.avatarImage}
resizeMode={'cover'} resizeMode={'cover'}