Skip to content
Snippets Groups Projects
Commit 8b55b1ad authored by Lukas Mauß's avatar Lukas Mauß
Browse files

Fix conversion from object to boolean

parent 13ebd313
No related merge requests found
......@@ -63,11 +63,11 @@ export class CommentListComponent implements OnInit {
if (payload.id === this.comments[i].id) {
for (const [key, value] of Object.entries(payload.changes)) {
switch (key) {
case 'read': this.comments[i].read = value;
case 'read': this.comments[i].read = <boolean>value;
break;
case 'correct' : this.comments[i].correct = value;
case 'correct' : this.comments[i].correct = <boolean>value;
break;
case 'favorite' : this.comments[i].favorite = value;
case 'favorite' : this.comments[i].favorite = <boolean>value;
break;
}
}
......@@ -75,6 +75,5 @@ export class CommentListComponent implements OnInit {
}
}
}
}
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