Updated the code so the user levels update depending on their performance
This commit is contained in:
@@ -166,6 +166,8 @@ export default function Page() {
|
||||
});
|
||||
}
|
||||
|
||||
axios.get("/api/stats/update");
|
||||
|
||||
setUserSolutions([...userSolutions.filter((x) => !solutionIds.includes(x.exercise)), ...solutions]);
|
||||
setModuleIndex((prev) => prev + 1);
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user