Only add Image tag to SetItem if an image exists

This commit is contained in:
Brandon Presley 2022-09-01 13:05:58 +12:00
parent d7330067bb
commit aac8bba4ec
1 changed files with 2 additions and 1 deletions

View File

@ -65,7 +65,8 @@ export default function SetItem({
description={`${item.reps} x ${item.weight}${item.unit || 'kg'}`}
onLongPress={longPress}
left={() =>
images && (
images &&
item.image && (
<Image source={{uri: item.image}} style={{height: 75, width: 75}} />
)
}