Add console.error to all axios failures
This commit is contained in:
@@ -22,6 +22,7 @@ export function submitFollow(router) {
|
||||
dispatch(submitFollowSuccess(response.data));
|
||||
router.push(`/accounts/${response.data.id}`);
|
||||
}).catch(function (error) {
|
||||
console.error(error);
|
||||
dispatch(submitFollowFail(error));
|
||||
});
|
||||
};
|
||||
|
Reference in New Issue
Block a user