diff options
Diffstat (limited to 'src/components/camera/GalleryIcon.tsx')
-rw-r--r-- | src/components/camera/GalleryIcon.tsx | 14 |
1 files changed, 8 insertions, 6 deletions
diff --git a/src/components/camera/GalleryIcon.tsx b/src/components/camera/GalleryIcon.tsx index 19a63a9a..ab226323 100644 --- a/src/components/camera/GalleryIcon.tsx +++ b/src/components/camera/GalleryIcon.tsx @@ -25,12 +25,14 @@ export const GalleryIcon: React.FC<GalleryIconProps> = ({ <TouchableOpacity onPress={() => navigateToImagePicker(navigation, screenType, title)} style={styles.saveButton}> - <Image - source={{uri: mostRecentPhoto}} - width={40} - height={40} - style={styles.galleryIcon} - /> + {mostRecentPhoto !== '' && ( + <Image + source={{uri: mostRecentPhoto}} + width={40} + height={40} + style={styles.galleryIcon} + /> + )} <Text style={styles.saveButtonLabel}>Gallery</Text> </TouchableOpacity> ); |