From 51cd6055df07127745ace56edd6eeae9af5c6c0d Mon Sep 17 00:00:00 2001 From: "davidzagi93@gmail.com" Date: Tue, 21 Sep 2021 14:45:59 +0100 Subject: [PATCH] fix: corrected wrong spelling for `unknownTransaction` --- libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx | 4 ++-- libs/remix-ui/terminal/src/lib/types/terminalTypes.ts | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx index 7738c06e84..97c2769d64 100644 --- a/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx +++ b/libs/remix-ui/terminal/src/lib/remix-ui-terminal.tsx @@ -37,7 +37,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { const [newstate, dispatch] = useReducer(registerCommandReducer, initialState) const [cmdHistory, cmdHistoryDispatch] = useReducer(addCommandHistoryReducer, initialState) const [, scriptRunnerDispatch] = useReducer(registerScriptRunnerReducer, initialState) - const [isListeningOnNetwork, setIsListeningOnNetwork] = useState(false) + const [, setIsListeningOnNetwork] = useState(false) const [clearConsole, setClearConsole] = useState(false) const [paste, setPaste] = useState(false) const [autoCompletState, setAutoCompleteState] = useState({ @@ -101,7 +101,7 @@ export const RemixUiTerminal = (props: RemixUiTerminalProps) => { if (output) scriptRunnerDispatch({ type: 'script', payload: { message: '5' } }) }) }, { activate: true }, dispatch) - }, [isListeningOnNetwork, autoCompletState.text]) + }, [autoCompletState.text]) useEffect(() => { scrollToBottom() diff --git a/libs/remix-ui/terminal/src/lib/types/terminalTypes.ts b/libs/remix-ui/terminal/src/lib/types/terminalTypes.ts index 61ad0c6155..0d61037b01 100644 --- a/libs/remix-ui/terminal/src/lib/types/terminalTypes.ts +++ b/libs/remix-ui/terminal/src/lib/types/terminalTypes.ts @@ -7,7 +7,7 @@ export interface ROOTS { } export const KnownTransaction = 'knownTransaction' -export const UnknownTransaction = 'unkownTransaction' +export const UnknownTransaction = 'unknownTransaction' export const EmptyBlock = 'emptyBlock' export const NewTransaction = 'newTransaction' export const NewBlock = 'newBlock'