Skip to content

Commit 04eff75

Browse files
authored
SvgImage - add missing optional chaining (#1902)
1 parent 279f1be commit 04eff75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/utils/imageUtils.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ import Assets from '../assets';
44

55
export function isSvgUri(source: ImageProps['source']) {
66
// @ts-expect-error
7-
return typeof source === 'object' && source?.uri?.endsWith('.svg');
7+
return typeof source === 'object' && source?.uri?.endsWith?.('.svg');
88
}
99

1010
export function isSvg(source: ImageProps['source']) {

0 commit comments

Comments
 (0)