Skip to content

Commit

Permalink
Sort question history by date descending
Browse files Browse the repository at this point in the history
  • Loading branch information
brendantwh committed Nov 7, 2024
1 parent 5fc0953 commit a91dbbe
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -104,7 +104,7 @@ export default function UserQuestionHistory() {
})
);

setHistory(mappedQuestions);
setHistory(mappedQuestions.reverse());
} catch (err) {
console.log("Error fetching questions from server:", err)
} finally {
Expand Down

0 comments on commit a91dbbe

Please sign in to comment.