diff --git a/src/libs/ReceiptUtils.js b/src/libs/ReceiptUtils.js index 5612100946c4..f7a53227d8d7 100644 --- a/src/libs/ReceiptUtils.js +++ b/src/libs/ReceiptUtils.js @@ -41,7 +41,7 @@ function getThumbnailAndImageURIs(path, filename) { const isReceiptImage = Str.isImage(filename); // For local files, we won't have a thumbnail yet - if ((path.startsWith('blob:') || path.startsWith('file:')) && isReceiptImage) { + if (isReceiptImage && (path.startsWith('blob:') || path.startsWith('file:'))) { return {thumbnail: null, image: path}; }