From 6b498fae466526e5b61cbea5b7772c4cff9370f8 Mon Sep 17 00:00:00 2001 From: Claire Date: Thu, 3 Nov 2022 16:05:39 +0100 Subject: [Glitch] Fix being unable to withdraw follow request when confirmation modal is disabled (#19687) Port cbb440bbc2de7c805f687c886b32ab7dbafde07f to glitch-soc Signed-off-by: Claire --- .../glitch/features/account_timeline/containers/header_container.js | 2 ++ 1 file changed, 2 insertions(+) (limited to 'app/javascript/flavours/glitch/features/account_timeline/containers') diff --git a/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js b/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js index e6d8bb3bc..a65463243 100644 --- a/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js +++ b/app/javascript/flavours/glitch/features/account_timeline/containers/header_container.js @@ -61,6 +61,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'))); -- cgit