Skip to content

Commit

Permalink
chore: typings
Browse files Browse the repository at this point in the history
Co-authored-by: IanM <[email protected]>
  • Loading branch information
DavideIadeluca and imorland authored Nov 1, 2024
1 parent a432f5b commit 9292245
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/addProfilePane.ts
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ export default function addProfilePane() {
};

extend(UserPage.prototype, 'navItems', function (items: ItemList<Mithril.Children>) {
if (app.forum.attribute('canViewMasquerade') || this.user?.canEditMasqueradeProfile()) {
if (app.forum.attribute<boolean>('canViewMasquerade') || this.user?.canEditMasqueradeProfile()) {
const edit = this.user?.canEditMasqueradeProfile();

items.add(
Expand Down

0 comments on commit 9292245

Please sign in to comment.