Skip to content

Commit

Permalink
Fixed a bug that was already solved in another branch
Browse files Browse the repository at this point in the history
  • Loading branch information
Mister-Mario committed Apr 15, 2024
1 parent 9451f87 commit ccfd483
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 2 additions & 1 deletion webapp/src/components/HistoricalData/HistoricalView.js
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit ccfd483

Please sign in to comment.