Recap not visible in case of mistakes
jacopofar opened this issue · comments
When answering correctly the last card the quiz hangs there if it was a repetition, instead of going to the final recap
Since React state change is asynchronous, deleting the last card from the state and then adding the modified one end up duplicating it. Now the helper to delete this last card also returns the truncated array so it can be safely used immediately