From 34f9320889f691f13b3ae8e66eaa5d4561e79e5b Mon Sep 17 00:00:00 2001 From: dragongoose Date: Sun, 10 Sep 2023 15:30:31 -0400 Subject: [PATCH] Fix follows not working when nobody is already followed --- src/components/FollowButton.vue | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/components/FollowButton.vue b/src/components/FollowButton.vue index 1e27e99..2e50812 100644 --- a/src/components/FollowButton.vue +++ b/src/components/FollowButton.vue @@ -18,8 +18,7 @@ export default { methods: { followStreamer() { const username = this.$props.username - const follows = localStorage.getItem('following') - if (!follows) return + const follows = localStorage.getItem('following') || "[]" let parsedFollows: string[] = JSON.parse(follows)