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 9292245 commit 9e1c1ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/mutateUserHero.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ import type User from 'flarum/common/models/User';
export default function mutateUserHero() {
extend(UserCard.prototype, 'infoItems', function (items: ItemList<Mithril.Children>) {
const user = (this.attrs as { user: User }).user;
const answers = app.forum.attribute('canViewMasquerade') ? user.bioFields() || [] : [];
const answers = app.forum.attribute<boolean>('canViewMasquerade') ? user.bioFields() || [] : [];

items.add(
'masquerade-bio',
Expand Down

0 comments on commit 9e1c1ef

Please sign in to comment.