Skip to content
Snippets Groups Projects
Commit 85fd9238 authored by Tom Käsler's avatar Tom Käsler
Browse files

Add null check for vote input

parent 1fb4e922
No related merge requests found
......@@ -76,7 +76,7 @@ export class CommentComponent implements OnInit {
@Input()
set parseVote(vote: Vote) {
if (this.isStudent) {
if (vote) {
this.hasVoted = vote.vote;
}
}
......
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