diff --git a/packages/data-polling/.eslintrc.cjs b/packages/data-polling/.eslintrc.cjs index cf87fd8485..af08845d60 100644 --- a/packages/data-polling/.eslintrc.cjs +++ b/packages/data-polling/.eslintrc.cjs @@ -6,5 +6,12 @@ module.exports = { parser: "@typescript-eslint/parser", tsconfigRootDir: __dirname, }, - overrides: [{ files: ["src/index.ts"], rules: { "import/no-unused-modules": "off" } }], + overrides: [ + { + files: ["*.ts", "*.tsx"], + rules: { + "import/no-unused-modules": "off", + }, + }, + ], }; diff --git a/packages/data-polling/src/useDataPolling.ts b/packages/data-polling/src/useDataPolling.ts index 94e3064615..8c01bd70da 100644 --- a/packages/data-polling/src/useDataPolling.ts +++ b/packages/data-polling/src/useDataPolling.ts @@ -1,6 +1,6 @@ import { assetsActions, useAppDispatch } from "@umami/state"; import { fromUnixTime } from "date-fns"; -import { max } from "lodash"; +import max from "lodash/max"; import { useEffect } from "react"; import { usePollAccountStates } from "./usePollAccountStates"; @@ -12,9 +12,11 @@ import { usePollPendingOperations } from "./usePollPendingOperations"; import { usePollProtocolSettings } from "./usePollProtocolSettings"; import { usePollTokenBalances } from "./usePollTokenBalances"; import { usePollUnstakeRequests } from "./usePollUnstakeRequests"; +import { useReactQueryErrorHandler } from "./useReactQueryErrorHandler"; export const useDataPolling = () => { const dispatch = useAppDispatch(); + const handleError = useReactQueryErrorHandler(); const pollers = [ usePollAccountStates(), diff --git a/packages/multisig/.eslintrc.cjs b/packages/multisig/.eslintrc.cjs index effe41d41f..af08845d60 100644 --- a/packages/multisig/.eslintrc.cjs +++ b/packages/multisig/.eslintrc.cjs @@ -6,4 +6,12 @@ module.exports = { parser: "@typescript-eslint/parser", tsconfigRootDir: __dirname, }, + overrides: [ + { + files: ["*.ts", "*.tsx"], + rules: { + "import/no-unused-modules": "off", + }, + }, + ], }; diff --git a/packages/multisig/src/types.ts b/packages/multisig/src/types.ts index 2b6c99f1c4..87a6798ecf 100644 --- a/packages/multisig/src/types.ts +++ b/packages/multisig/src/types.ts @@ -32,6 +32,6 @@ export type RawTzktMultisigBigMap = { key: string | null; value: { actions: string; - approvals: string[]; + approvals?: string[]; } | null; };