From 42f48ffea23247339df076657d84bd7997e6047a Mon Sep 17 00:00:00 2001 From: Johann150 Date: Fri, 10 Jun 2022 07:29:46 +0200 Subject: [PATCH] refactor: follow button (#8789) * fix: display cancelling follow request * remove unnecessary branch The executed code is the same as in the else branch so this special condition is unnecessary. * remove code duplication Use the same callback as later for updating these variables. * use $ref sugar * remove unused import Co-authored-by: blackskye-sx --- .../client/src/components/follow-button.vue | 34 ++++++++----------- 1 file changed, 14 insertions(+), 20 deletions(-) diff --git a/packages/client/src/components/follow-button.vue b/packages/client/src/components/follow-button.vue index b3540bc31..efee795e4 100644 --- a/packages/client/src/components/follow-button.vue +++ b/packages/client/src/components/follow-button.vue @@ -28,7 +28,7 @@