linter-unfuck

This commit is contained in:
tonyrewin 2022-12-02 14:34:21 +03:00
parent 8be277c602
commit c1729ba18b
2 changed files with 2 additions and 2 deletions

View File

@ -68,6 +68,7 @@ module.exports = {
'unicorn/prefer-dom-node-append': 'off', // FIXME
'unicorn/prefer-top-level-await': 'warn',
'unicorn/consistent-function-scoping': 'warn',
'sonarjs/no-duplicate-string': 'warn',
// Promise
// 'promise/catch-or-return': 'off', // Should be enabled

View File

@ -66,7 +66,6 @@ export const InboxView = () => {
const [postMessageText, setPostMessageText] = createSignal('')
const [loading, setLoading] = createSignal<boolean>(false)
const { session } = useSession()
const currentSlug = createMemo(() => session()?.user?.slug)
// Поиск по диалогам
const getQuery = (query) => {
@ -167,7 +166,7 @@ export const InboxView = () => {
<div class="holder">
<div class="dialogs">
<For each={chats()}>
{(chat) => <DialogCard members={chat.members} ownSlug={currentSlug()} />}
{(chat) => <DialogCard members={[...chat.members, session().user.id]} />}
</For>
</div>
</div>