Skip to content

Commit

Permalink
fix: bestAnswerUser() is not a function
Browse files Browse the repository at this point in the history
  • Loading branch information
imorland committed Oct 5, 2024
1 parent 732ff71 commit dfb6a8a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/src/forum/components/SelectBestAnswerItem.js
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ export default class SelectBestAnswerItem extends Component {
'user',
<span className="BestAnswer--User">
{app.translator.trans('fof-best-answer.forum.best_answer_label', {
user: this.discussion.bestAnswerUser(),
user: this.discussion.bestAnswerUser?.(),
time_set: this.getSetTime(this.discussion),
a: <a onclick={() => m.route.set(app.route.user(this.discussion.bestAnswerUser()))} />,
})}
Expand Down

0 comments on commit dfb6a8a

Please sign in to comment.