load player-meta after player-data
This commit is contained in:
@@ -405,7 +405,6 @@ export default {
|
||||
const GetPlayer = async () => {
|
||||
if (props.id) {
|
||||
const [res, resData] = await GetUser(props.id)
|
||||
data.playerMeta = await getPlayerMeta(props.id, displayCounter)
|
||||
|
||||
if (res === 200 && resData) {
|
||||
if (resData.steamid64 !== store.state.playerDetails.steamid64) {
|
||||
@@ -509,8 +508,9 @@ export default {
|
||||
}, 100)
|
||||
}
|
||||
|
||||
watch(() => props.id, () => {
|
||||
GetPlayer()
|
||||
watch(() => props.id, async () => {
|
||||
await GetPlayer()
|
||||
data.playerMeta = await getPlayerMeta(props.id, displayCounter)
|
||||
})
|
||||
|
||||
watch(() => data.playerMeta, () => {
|
||||
@@ -528,6 +528,7 @@ export default {
|
||||
wrapper.style.minHeight = height + 'px'
|
||||
|
||||
await GetPlayer()
|
||||
data.playerMeta = await getPlayerMeta(props.id, displayCounter)
|
||||
})
|
||||
|
||||
return {
|
||||
|
Reference in New Issue
Block a user