Skip to content

Commit

Permalink
TS doesn't like this
Browse files Browse the repository at this point in the history
  • Loading branch information
SychO9 committed Aug 18, 2021
1 parent 20aa960 commit 61830cb
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions js/src/common/registerWidget.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,7 @@ export default function (app) {
isDisabled: () => {
const loadWithInitialResponse = app.forum.attribute('afrux-forum-widgets-core.preferDataWithInitialLoad');

return
(!loadWithInitialResponse && (!app.forum.attribute('canViewLastSeenAt') || !app.forum.attribute('canSearchUsers')))
return (!loadWithInitialResponse && (!app.forum.attribute('canViewLastSeenAt') || !app.forum.attribute('canSearchUsers')))
||
(loadWithInitialResponse && !app.forum.onlineUsers().length);
},
Expand Down

0 comments on commit 61830cb

Please sign in to comment.