Made change to api call to reflect server-side changes.
This commit is contained in:
parent
eb4e4b2444
commit
f9fef07b9a
@ -26,7 +26,7 @@ export default class Dashboard extends React.Component {
|
|||||||
await this.availableSports();
|
await this.availableSports();
|
||||||
}
|
}
|
||||||
async latestMatches() {
|
async latestMatches() {
|
||||||
let recentMatchesRes = await apiClient.get("/match/recent/15");
|
let recentMatchesRes = await apiClient.get("/match/recent/user/15");
|
||||||
if (recentMatchesRes.status === 200) {
|
if (recentMatchesRes.status === 200) {
|
||||||
this.setState({ displayedMatches: recentMatchesRes.data.recent });
|
this.setState({ displayedMatches: recentMatchesRes.data.recent });
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user