diff --git a/webapp/src/components/HistoricalData/HistoricalView.js b/webapp/src/components/HistoricalData/HistoricalView.js index 9812acc7..266efe26 100644 --- a/webapp/src/components/HistoricalData/HistoricalView.js +++ b/webapp/src/components/HistoricalData/HistoricalView.js @@ -16,9 +16,10 @@ export default function HistoricalView() { const getRecords = async ()=>{ try { - var jsonRecords = await retriever.getRecords("user"); + var jsonRecords = await retriever.getRecords(user.username); var recordsArray = jsonRecords.games; setRecords(recordsArray); + console.log(recordsArray) } catch (error) { console.log(error); } diff --git a/webapp/src/components/HistoricalData/HistoryRecordRetriever.js b/webapp/src/components/HistoricalData/HistoryRecordRetriever.js index 86fad6d7..02456549 100644 --- a/webapp/src/components/HistoricalData/HistoryRecordRetriever.js +++ b/webapp/src/components/HistoricalData/HistoryRecordRetriever.js @@ -8,7 +8,7 @@ class HistoryRecordRetriever{ } async getRecords(user) { - + console.log(user) try { const response = await axios.get(this.apiUrl + '/' + user); const receivedRecords = await response.data;