0
Fork 0
mirror of https://codeberg.org/SafeTwitch/safetwitch.git synced 2024-12-22 13:22:58 -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: { methods: {
followStreamer() { followStreamer() {
const username = this.$props.username const username = this.$props.username
const follows = localStorage.getItem('following') const follows = localStorage.getItem('following') || "[]"
if (!follows) return
let parsedFollows: string[] = JSON.parse(follows) let parsedFollows: string[] = JSON.parse(follows)