Page MenuHomePhabricator

D7638.id25793.diff
No OneTemporary

D7638.id25793.diff

diff --git a/native/avatars/avatar-hooks.js b/native/avatars/avatar-hooks.js
--- a/native/avatars/avatar-hooks.js
+++ b/native/avatars/avatar-hooks.js
@@ -222,6 +222,9 @@
const selectFromGalleryAndUpdateUserAvatar = React.useCallback(async () => {
const selection: ?MediaLibrarySelection = await selectFromGallery();
+ if (!selection) {
+ return;
+ }
const uploadedMediaID = await uploadSelectedMedia(selection);

File Metadata

Mime Type
text/plain
Expires
Sat, Nov 9, 9:51 AM (20 h, 51 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2451243
Default Alt Text
D7638.id25793.diff (444 B)

Event Timeline