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

Fix Following preview

This commit is contained in:
dragongoose 2023-04-11 20:43:44 -04:00
parent a967ff2a15
commit 7739bc99f0

View file

@ -27,7 +27,7 @@ export default {
const streamDataFetch = await fetch(
`${protocol}${import.meta.env.VITE_BACKEND_DOMAIN}/api/users/${props.name}`
)
const data = await streamDataFetch.json()
const data = (await streamDataFetch.json()).data
if (data.stream) {
data.stream.streamer = { name: props.name, pfp: data.pfp }