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)