about summary refs log tree commit diff
path: root/src/lib/media
diff options
context:
space:
mode:
authorMary <148872143+mary-ext@users.noreply.github.com>2024-09-24 23:14:15 +0700
committerGitHub <noreply@github.com>2024-09-25 01:14:15 +0900
commit8ea89469ef1a7988a7b3d05716da55e9da680c35 (patch)
treee7bc8f6412ae400a2127833ec4abc823b96df2cd /src/lib/media
parentdbe1df7ac7de58e02dc8f236347b0856cfb570ef (diff)
downloadvoidsky-8ea89469ef1a7988a7b3d05716da55e9da680c35.tar.zst
MobX removal take 2 (#5381)
* mobx removal take 2

* Actually rm mobx

---------

Co-authored-by: Dan Abramov <dan.abramov@gmail.com>
Diffstat (limited to 'src/lib/media')
-rw-r--r--src/lib/media/picker.shared.ts2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/media/picker.shared.ts b/src/lib/media/picker.shared.ts
index 9146cd778..b959ce8be 100644
--- a/src/lib/media/picker.shared.ts
+++ b/src/lib/media/picker.shared.ts
@@ -28,7 +28,7 @@ export async function openPicker(opts?: ImagePickerOptions) {
       return false
     })
     .map(image => ({
-      mime: 'image/jpeg',
+      mime: image.mimeType || 'image/jpeg',
       height: image.height,
       width: image.width,
       path: image.uri,