 
     friend = _.find(currentUser.friends, target_id: props.userId)
     followersWithoutSelf = @props.followers ? 0
-    followersWithoutSelf -= 1 if friend
+    followersWithoutSelf -= 1 if friend?
 
     @state = {friend, followersWithoutSelf}
 

    title = switch
      when !isVisible
        null
      when @state.friend
        osu.trans('friends.buttons.remove')
      when isFriendLimit
        osu.trans('friends.too_many')
      else
        osu.trans('friends.buttons.add')

    disabled = !isVisible || @state.loading || isFriendLimit && !@state.friend

    if @state.friend && !@state.loading
      if @state.friend.mutual
        blockClass += " #{bn}--mutual"
      else



  followers: =>
    @state.followersWithoutSelf + (if @state.friend? then 1 else 0)


  isVisible: =>
