diff --git a/src/app/common/utils/use-waiting-message.ts b/src/app/common/utils/use-waiting-message.ts index 6dc90d66727..6ac9701c667 100644 --- a/src/app/common/utils/use-waiting-message.ts +++ b/src/app/common/utils/use-waiting-message.ts @@ -6,7 +6,7 @@ import { useInterval } from './use-interval'; export type WaitingMessages = Record; function messageForSecondsPassed(waitingMessages: WaitingMessages, seconds: number) { - return waitingMessages[seconds]; + return waitingMessages[seconds as keyof typeof waitingMessages]; } export const useWaitingMessage = ( diff --git a/src/app/features/errors/app-error-boundary.tsx b/src/app/features/errors/app-error-boundary.tsx index 2e46babd98e..6c2bda0953b 100644 --- a/src/app/features/errors/app-error-boundary.tsx +++ b/src/app/features/errors/app-error-boundary.tsx @@ -29,7 +29,7 @@ function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) { borderRadius="12px" backgroundColor="ink.1000" width="100%" - code={value} + code={value as string} language="bash" Prism={Prism as any} /> diff --git a/src/app/features/ledger/hooks/use-ledger-latest-route-error.hook.ts b/src/app/features/ledger/hooks/use-ledger-latest-route-error.hook.ts index 57931ef9704..4d941d1bd1b 100644 --- a/src/app/features/ledger/hooks/use-ledger-latest-route-error.hook.ts +++ b/src/app/features/ledger/hooks/use-ledger-latest-route-error.hook.ts @@ -8,7 +8,7 @@ export function useLatestLedgerError() { const state = location.state; if (!state || state === null) return null; if (typeof state === 'object') { - const error = state.latestLedgerError; + const error = (state as any).latestLedgerError; if (error) return error; } return null;