FIX: Do not render if there is no user

This commit is contained in:
Jeff Wong 2020-04-14 10:25:47 -07:00
parent 1a60f5670f
commit dea80b5ed8
1 changed files with 1 additions and 1 deletions

View File

@ -4,7 +4,7 @@ import { emojiUrlFor } from "discourse/lib/text";
export default {
shouldRender(args, component) {
return component.siteSettings.user_notes_enabled;
return component.siteSettings.user_notes_enabled && args.user;
},
setupComponent(args, component) {