Fix report button showing if anonymous reporting is disabled

Signed-off-by: Thomas Citharel <tcit@tcit.fr>
This commit is contained in:
Thomas Citharel 2020-10-01 17:51:59 +02:00
parent 885ba8e5d9
commit 6917fa0ec5

View File

@ -1022,9 +1022,7 @@ export default class Event extends EventMixin {
} }
get ableToReport(): boolean { get ableToReport(): boolean {
return ( return this.config && (this.currentActor.id != null || this.config.anonymous.reports.allowed);
this.config && (this.currentActor.id !== undefined || this.config.anonymous.reports.allowed)
);
} }
get actorForReport(): IActor | null { get actorForReport(): IActor | null {