From 78c9b83282ec484307070be4ec8f8282cf95b8a8 Mon Sep 17 00:00:00 2001 From: Grzegorz Leoniec Date: Wed, 6 Mar 2019 13:08:26 +0100 Subject: [PATCH] Fixed follow stats --- components/FollowButton.vue | 4 ++-- pages/profile/_slug.vue | 6 +++--- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/components/FollowButton.vue b/components/FollowButton.vue index 676aa1a83..f5c705a8d 100644 --- a/components/FollowButton.vue +++ b/components/FollowButton.vue @@ -79,8 +79,8 @@ export default { } }) .then(res => { - this.$emit('update', follow ? res.data.follow : follow) - this.$emit('optimistic', follow ? res.data.follow : follow) + // this.$emit('optimistic', follow ? res.data.follow : follow) + this.$emit('update', follow) }) .catch(() => { this.$emit('optimistic', !follow) diff --git a/pages/profile/_slug.vue b/pages/profile/_slug.vue index f83e25e1f..614187004 100644 --- a/pages/profile/_slug.vue +++ b/pages/profile/_slug.vue @@ -61,7 +61,7 @@ - + - +