Skip to content

Commit

Permalink
fix: automerge mistakes fix
Browse files Browse the repository at this point in the history
  • Loading branch information
fess-v committed Oct 4, 2023
1 parent 8714351 commit f3d0ecb
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/app/common/utils/use-waiting-message.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ import { useInterval } from './use-interval';
export type WaitingMessages = Record<number, string>;

function messageForSecondsPassed(waitingMessages: WaitingMessages, seconds: number) {
return waitingMessages[seconds];
return waitingMessages[seconds as keyof typeof waitingMessages];
}

export const useWaitingMessage = (
Expand Down
2 changes: 1 addition & 1 deletion src/app/features/errors/app-error-boundary.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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}
/>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit f3d0ecb

Please sign in to comment.