Skip to content

Commit

Permalink
Add null checking (#14089)
Browse files Browse the repository at this point in the history
  • Loading branch information
woxtu authored Jun 27, 2024
1 parent 0e512d4 commit 4096dab
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions packages/frontend/src/components/MkFollowButton.vue
Original file line number Diff line number Diff line change
Expand Up @@ -121,6 +121,8 @@ async function onClick() {
});
hasPendingFollowRequestFromYou.value = true;

if ($i == null) return;

claimAchievement('following1');

if ($i.followingCount >= 10) {
Expand Down

0 comments on commit 4096dab

Please sign in to comment.