From f9fef07b9a66f9aa94c8820ee754769bb78890fa Mon Sep 17 00:00:00 2001 From: Harrison Deng Date: Thu, 7 Apr 2022 17:59:12 -0500 Subject: [PATCH] Made change to api call to reflect server-side changes. --- sports-matcher/client/src/pages/Dashboard.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sports-matcher/client/src/pages/Dashboard.js b/sports-matcher/client/src/pages/Dashboard.js index 5703982..b88f5ca 100644 --- a/sports-matcher/client/src/pages/Dashboard.js +++ b/sports-matcher/client/src/pages/Dashboard.js @@ -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 }); }