Fix being unable to withdraw follow request when confirmation modal is disabled (#19687)

* Fix being unable to withdraw follow request when unfollow confirmation modal is disabled

Fixes #19569

* Fix “unfollow” being inadequately used for withdrawing follow requests from account card
This commit is contained in:
Claire
2022-11-03 16:05:39 +01:00
committed by GitHub
parent 125322718b
commit cbb440bbc2
2 changed files with 14 additions and 4 deletions

View File

@ -60,6 +60,8 @@ const mapDispatchToProps = (dispatch, { intl }) => ({
confirm: intl.formatMessage(messages.cancelFollowRequestConfirm),
onConfirm: () => dispatch(unfollowAccount(account.get('id'))),
}));
} else {
dispatch(unfollowAccount(account.get('id')));
}
} else {
dispatch(followAccount(account.get('id')));