Fixes pushing of quiz state updates if the state is 0

parent 4205e0a4
......@@ -187,7 +187,7 @@ class QuizDAO extends AbstractDAO<Array<IQuizEntity>> {
setPath(quiz, key, updatedFields[key]);
});
if (updatedFields.state) {
if (typeof updatedFields.state !== 'undefined') {
this.updateEmitter.emit(DbEvent.StateChanged, quiz);
}
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment