forked from CSGOWTF/csgowtf
better information when not enough data on PlayerSideInfo
This commit is contained in:
@@ -10,7 +10,7 @@ export const GetMatches = async () => {
|
||||
return res.data
|
||||
} catch (err) {
|
||||
// TODO: Error handling
|
||||
console.log(err.response.status, err.response.statusText)
|
||||
// console.log(err.response.status, err.response.statusText)
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,6 +109,7 @@ export const GetPlayerMeta = async (player_id, limit = 4) => {
|
||||
const res = await axios.get(`${API_URL}/player/${player_id}/meta/${limit}`)
|
||||
|
||||
if (res.status === 200) {
|
||||
// console.log(res.data)
|
||||
return res.data
|
||||
}
|
||||
} catch (err) {
|
||||
|
||||
Reference in New Issue
Block a user