diff options
| author | woxtu <woxtup@gmail.com> | 2024-06-27 21:59:19 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-06-27 21:59:19 +0900 |
| commit | 4096dabe1e4b6ebb43e47fbee19954fb92adbdc7 (patch) | |
| tree | b68ca540490b1bbbd78442bcb41b3030a9ac753b /packages/frontend/src/components/MkFollowButton.vue | |
| parent | update: CHANGELOG.md for #14097 (#14099) (diff) | |
| download | sharkey-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.vue | 2 |
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) { |