summaryrefslogtreecommitdiff
path: root/packages/frontend/src/components/MkFollowButton.vue
diff options
context:
space:
mode:
authorwoxtu <woxtup@gmail.com>2024-06-27 21:59:19 +0900
committerGitHub <noreply@github.com>2024-06-27 21:59:19 +0900
commit4096dabe1e4b6ebb43e47fbee19954fb92adbdc7 (patch)
treeb68ca540490b1bbbd78442bcb41b3030a9ac753b /packages/frontend/src/components/MkFollowButton.vue
parentupdate: CHANGELOG.md for #14097 (#14099) (diff)
downloadsharkey-4096dabe1e4b6ebb43e47fbee19954fb92adbdc7.tar.gz
sharkey-4096dabe1e4b6ebb43e47fbee19954fb92adbdc7.tar.bz2
sharkey-4096dabe1e4b6ebb43e47fbee19954fb92adbdc7.zip
Add null checking (#14089)
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) {