From 6917fa0ec55ff7ee270aaa323074b9feaf5885a4 Mon Sep 17 00:00:00 2001 From: Thomas Citharel Date: Thu, 1 Oct 2020 17:51:59 +0200 Subject: [PATCH] Fix report button showing if anonymous reporting is disabled Signed-off-by: Thomas Citharel --- js/src/views/Event/Event.vue | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/js/src/views/Event/Event.vue b/js/src/views/Event/Event.vue index 1c5a9972c..a19ff0983 100644 --- a/js/src/views/Event/Event.vue +++ b/js/src/views/Event/Event.vue @@ -1022,9 +1022,7 @@ export default class Event extends EventMixin { } get ableToReport(): boolean { - return ( - this.config && (this.currentActor.id !== undefined || this.config.anonymous.reports.allowed) - ); + return this.config && (this.currentActor.id != null || this.config.anonymous.reports.allowed); } get actorForReport(): IActor | null {