Skip to content

Commit 8a09915

Browse files
committed
dev: PhotoUtils: gracefully handle undefined images
1 parent e3c8482 commit 8a09915

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

utils/PhotoUtils.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ const getPhoto = (photo: string | undefined): string => {
5050
if (fileName === 'cln') file = CLN;
5151
if (fileName === 'lnd') file = LND;
5252

53-
return Image.resolveAssetSource(file).uri || '';
53+
return Image.resolveAssetSource(file)?.uri || '';
5454
}
5555
return photo || '';
5656
};

0 commit comments

Comments
 (0)