summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkFollowButton.vue
diff options
context:
space:
mode:
Diffstat (limited to 'packages/frontend/src/components/MkFollowButton.vue')
-rw-r--r--packages/frontend/src/components/MkFollowButton.vue2
1 files changed, 2 insertions, 0 deletions
diff --git a/packages/frontend/src/components/MkFollowButton.vue b/packages/frontend/src/components/MkFollowButton.vue
index 636e61db8f..6a4081079c 100644
--- a/packages/frontend/src/components/MkFollowButton.vue
+++ b/packages/frontend/src/components/MkFollowButton.vue
@@ -121,6 +121,8 @@ async function onClick() {
});
hasPendingFollowRequestFromYou.value = true;
+ if ($i == null) return;
+
claimAchievement('following1');
if ($i.followingCount >= 10) {