Page Menu
Home
Phabricator
Search
Configure Global Search
Log In
Files
F3183651
D7638.id25793.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Flag For Later
Size
444 B
Referenced Files
None
Subscribers
None
D7638.id25793.diff
View Options
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
Details
Attached
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)
Attached To
Mode
D7638: [native] Return without error if avatar image `selection` is empty
Attached
Detach File
Event Timeline
Log In to Comment