DEV: Only include userTips if user is present

This commit is contained in:
Isaac Janzen 2023-02-15 10:12:58 -06:00 committed by David Taylor
parent 9fd2207826
commit 53695e7d29
2 changed files with 5 additions and 1 deletions

View File

@ -62,6 +62,10 @@ export default class GlimmerTopicTimeline extends Component {
@bind
addUserTip(element) {
if (!this.currentUser) {
return;
}
this.currentUser.showUserTip({
id: "topic_timeline",
titleText: I18n.t("user_tips.topic_timeline.title"),

View File

@ -34,7 +34,7 @@ acceptance("Topic Notifications button", function (needs) {
);
const timelineNotificationOptions = selectKit(
".topic-timeline .widget-component-connector .topic-notifications-options"
".topic-timeline .topic-notifications-options"
);
assert.strictEqual(