The issue is here:
ctx.handleEvent("refresh", (payload) => {
// Update the payload
payload.problem_number = payload.problem_number;
payload.problem_type = payload.problem_type;
payload.correct_answer = payload.correct_answer;
payload.test_code = payload.test_code;
// ...
The assignments don’t do anything, because you are shadowing the original payload by the anonymous function argument payload : )


















