Fix minor error
This commit is contained in:
parent
4add6a19c4
commit
555f46dda5
@ -40,11 +40,13 @@ export default {
|
||||
async mounted() {
|
||||
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(() => {
|
||||
this.status = "error"
|
||||
})
|
||||
this.data = userData.data as StreamerData
|
||||
},
|
||||
components: {
|
||||
VideoPlayer,
|
||||
|
Loading…
x
Reference in New Issue
Block a user