Fix follows not working when nobody is already followed

This commit is contained in:
dragongoose 2023-09-10 15:30:31 -04:00
parent 55af083c85
commit 34f9320889
No known key found for this signature in database
GPG Key ID: 01397EEC371CDAA5

View File

@ -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)