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
Thu, Jan 9, 8:18 PM (11 h, 23 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
2838987
Default Alt Text
D7638.id25793.diff (444 B)

Event Timeline