diff --git a/.eslintrc.js b/.eslintrc.js index 5b15a85f..b0727747 100644 --- a/.eslintrc.js +++ b/.eslintrc.js @@ -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 diff --git a/src/components/Views/Inbox.tsx b/src/components/Views/Inbox.tsx index 30f1f57e..23e40faa 100644 --- a/src/components/Views/Inbox.tsx +++ b/src/components/Views/Inbox.tsx @@ -66,7 +66,6 @@ export const InboxView = () => { const [postMessageText, setPostMessageText] = createSignal('') const [loading, setLoading] = createSignal(false) const { session } = useSession() - const currentSlug = createMemo(() => session()?.user?.slug) // Поиск по диалогам const getQuery = (query) => { @@ -167,7 +166,7 @@ export const InboxView = () => {
- {(chat) => } + {(chat) => }