fix: avoid log error when cancelling (#5477)
This commit is contained in:
parent
9109b87269
commit
48c7dade1c
|
@ -146,8 +146,10 @@ const ChangeAvatarView = () => {
|
|||
type: AvatarStateActions.CHANGE_AVATAR,
|
||||
payload: { url: response.path, data: `data:image/jpeg;base64,${response.data}`, service: 'upload' }
|
||||
});
|
||||
} catch (error) {
|
||||
log(error);
|
||||
} catch (error: any) {
|
||||
if(error?.code !== "E_PICKER_CANCELLED") {
|
||||
log(error);
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in New Issue