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 @@ -219,7 +219,13 @@ dispatchActionPromise( updateUserAvatarActionTypes, - updateUserAvatarCall(imageAvatarUpdateRequest), + (async () => { + try { + return await updateUserAvatarCall(imageAvatarUpdateRequest); + } catch { + Alert.alert('Avatar update failed', 'Unable to update avatar.'); + } + })(), ); setProcessingOrUploadInProgress(false); }, [ @@ -319,7 +325,13 @@ dispatchActionPromise( updateUserAvatarActionTypes, - updateUserAvatarCall(removeAvatarRequest), + (async () => { + try { + return await updateUserAvatarCall(removeAvatarRequest); + } catch { + Alert.alert('Avatar update failed', 'Unable to update avatar.'); + } + })(), ); }, [dispatchActionPromise, updateUserAvatarCall]);