Updated UnfollowModal
• Updated: - UnfollowModal to fix the issue with people with it enabled being unable to unfollow others - All instances of instantiating the UnfollowModal to pass in account instead of accountId
This commit is contained in:
@@ -31,7 +31,7 @@ const mapDispatchToProps = (dispatch) => ({
|
||||
if (account.getIn(['relationship', 'following']) || account.getIn(['relationship', 'requested'])) {
|
||||
if (unfollowModal) {
|
||||
dispatch(openModal('UNFOLLOW', {
|
||||
accountId: account.get('id'),
|
||||
account,
|
||||
}))
|
||||
} else {
|
||||
dispatch(unfollowAccount(account.get('id')))
|
||||
|
||||
Reference in New Issue
Block a user