Fix minor error

This commit is contained in:
dragongoose 2023-06-19 22:04:56 -04:00
parent 4add6a19c4
commit 555f46dda5
No known key found for this signature in database
GPG Key ID: 50DB99B921579009

View File

@ -40,11 +40,13 @@ export default {
async mounted() { async mounted() {
const username = this.$route.params.username const username = this.$route.params.username
const userData: ApiResponse = await getEndpoint("api/users/" + username) await getEndpoint("api/users/" + username)
.then((data) => {
this.data = data
})
.catch(() => { .catch(() => {
this.status = "error" this.status = "error"
}) })
this.data = userData.data as StreamerData
}, },
components: { components: {
VideoPlayer, VideoPlayer,