Skip to content

Commit 0589d8f

Browse files
committed
fix: lint
1 parent 3f94381 commit 0589d8f

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/AttachmentPicker/index.native.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -240,9 +240,9 @@ function AttachmentPicker({
240240
});
241241

242242
return pickedFiles.map((file) => {
243-
const localCopy = localCopies.find((copy) => copy.status === 'success' && copy.sourceUri === file.uri);
243+
const localCopy = localCopies.find((copy) => copy.sourceUri === file.uri);
244244

245-
if (!localCopy) {
245+
if (!localCopy || localCopy.status !== 'success') {
246246
throw new Error("Couldn't create local file copy");
247247
}
248248

0 commit comments

Comments
 (0)