Updated the InteractiveSpeaking to also work with the session persistence
This commit is contained in:
@@ -178,7 +178,10 @@ export default function History({user}: {user: User}) {
|
||||
const {timeSpent, session} = dateStats[0];
|
||||
|
||||
const selectExam = () => {
|
||||
const examPromises = uniqBy(dateStats, "exam").map((stat) => getExamById(stat.module, stat.exam));
|
||||
const examPromises = uniqBy(dateStats, "exam").map((stat) => {
|
||||
console.log({stat});
|
||||
return getExamById(stat.module, stat.exam);
|
||||
});
|
||||
|
||||
Promise.all(examPromises).then((exams) => {
|
||||
if (exams.every((x) => !!x)) {
|
||||
|
||||
Reference in New Issue
Block a user