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:
parent
55af083c85
commit
34f9320889
1 changed files with 1 additions and 2 deletions
|
@ -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)
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue