0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 05:12:57 -05:00

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)