aboutsummaryrefslogtreecommitdiff
path: root/src/components/follow_button/follow_button.js
diff options
context:
space:
mode:
Diffstat (limited to 'src/components/follow_button/follow_button.js')
-rw-r--r--src/components/follow_button/follow_button.js6
1 files changed, 1 insertions, 5 deletions
diff --git a/src/components/follow_button/follow_button.js b/src/components/follow_button/follow_button.js
index 708d15a2..4123c9fd 100644
--- a/src/components/follow_button/follow_button.js
+++ b/src/components/follow_button/follow_button.js
@@ -33,11 +33,7 @@ export default {
},
methods: {
onClick () {
- if (this.user.following) {
- this.unfollow()
- } else {
- this.follow()
- }
+ this.user.following ? this.unfollow() : this.follow()
},
follow () {
this.inProgress = true