Fix missing report shield. Fixes #842 (#855)

This commit is contained in:
Dessalines 2022-11-17 18:59:49 -05:00 committed by GitHub
parent ee0cdde3b8
commit 03045c2e04
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -517,6 +517,7 @@ export class Navbar extends Component<NavbarProps, NavbarState> {
get moderatesSomething(): boolean {
return (
amAdmin() ||
UserService.Instance.myUserInfo.map(m => m.moderates).unwrapOr([])
.length > 0
);