DEV: Fix lint.

This commit is contained in:
Dan Ungureanu 2019-03-13 21:26:09 +02:00
parent bd8e46a9c1
commit 81bf4df1a5
No known key found for this signature in database
GPG Key ID: 0AA2A00D6ACC8B84
1 changed files with 4 additions and 1 deletions

View File

@ -441,7 +441,10 @@ createWidget("post-notice", {
},
html(attrs) {
const user = this.siteSettings.prioritize_username_in_ux || !attrs.name ? attrs.username : attrs.name;
const user =
this.siteSettings.prioritize_username_in_ux || !attrs.name
? attrs.username
: attrs.name;
let text, icon;
if (attrs.postNoticeType === "first") {
icon = "hands-helping";