From 19fc0a9351cb8b6c2310ec86986eab522ffb208a Mon Sep 17 00:00:00 2001
From: Marie <github@yuugi.dev>
Date: Sat, 8 Mar 2025 10:52:43 +0000
Subject: fix: Confirm follow prompt showing up when cancelling follow request

---
 packages/frontend/src/components/MkFollowButton.vue | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

(limited to 'packages/frontend/src/components/MkFollowButton.vue')

diff --git a/packages/frontend/src/components/MkFollowButton.vue b/packages/frontend/src/components/MkFollowButton.vue
index 42e8485f46..23d039bc58 100644
--- a/packages/frontend/src/components/MkFollowButton.vue
+++ b/packages/frontend/src/components/MkFollowButton.vue
@@ -106,7 +106,7 @@ async function onClick() {
 				userId: props.user.id,
 			});
 		} else {
-			if (defaultStore.state.alwaysConfirmFollow) {
+			if (defaultStore.state.alwaysConfirmFollow && !hasPendingFollowRequestFromYou.value) {
 				const { canceled } = await os.confirm({
 					type: 'question',
 					text: i18n.tsx.followConfirm({ name: props.user.name || props.user.username }),
-- 
cgit v1.2.3-freya

