Made change to api call to reflect server-side changes.

This commit is contained in:
Harrison Deng 2022-04-07 17:59:12 -05:00
parent eb4e4b2444
commit f9fef07b9a

View File

@ -26,7 +26,7 @@ export default class Dashboard extends React.Component {
await this.availableSports();
}
async latestMatches() {
let recentMatchesRes = await apiClient.get("/match/recent/15");
let recentMatchesRes = await apiClient.get("/match/recent/user/15");
if (recentMatchesRes.status === 200) {
this.setState({ displayedMatches: recentMatchesRes.data.recent });
}