Skip to content

armgit / fider

Public Imported from GitHub
0

Open platform to collect and prioritize feedback

fix warnings

Kevin Papst9b60a45523bf
diff --git a/public/services/fider.ts b/public/services/fider.ts
index 46e2bf4ce..fc868834f 100644
--- a/public/services/fider.ts
+++ b/public/services/fider.ts
@@ -42,7 +42,7 @@ export class FiderSession {
}
public get isModerationRequiredForNewPost(): boolean {
- return this.pTenant.isPro && this.pTenant.isModerationEnabled && this.isAuthenticated && this.pUser!.role === "visitor" && !this.pUser!.isTrusted
+ return this.pTenant.isPro && this.pTenant.isModerationEnabled && this.pUser?.role === "visitor" && !this.pUser.isTrusted
}
public get showModerationControls(): boolean {