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 e068326c4b
commit 331f9bc915
No known key found for this signature in database
GPG key ID: A061B9DDE0CA0773

View file

@ -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 {