diff --git a/libs/remix-ui/settings/src/lib/remix-ui-settings.tsx b/libs/remix-ui/settings/src/lib/remix-ui-settings.tsx index 4cbdb6df40..aaf3cd2382 100644 --- a/libs/remix-ui/settings/src/lib/remix-ui-settings.tsx +++ b/libs/remix-ui/settings/src/lib/remix-ui-settings.tsx @@ -4,7 +4,7 @@ import { CopyToClipboard } from '@remix-ui/clipboard' // eslint-disable-line import { enablePersonalModeText, ethereunVMText, generateContractMetadataText, gitAccessTokenLink, gitAccessTokenText, gitAccessTokenText2, gitAccessTokenTitle, matomoAnalytics, textDark, textSecondary, warnText, wordWrapText } from './constants' import './remix-ui-settings.css' -import { etherumVM, generateContractMetadat, personal, textWrapEventAction, useMatomoAnalytics, saveTokenToast, removeTokenToast } from './settingsAction' +import { ethereumVM, generateContractMetadat, personal, textWrapEventAction, useMatomoAnalytics, saveTokenToast, removeTokenToast } from './settingsAction' import { initialState, toastInitialState, toastReducer, settingReducer } from './settingsReducer' import { Toaster } from '@remix-ui/toaster'// eslint-disable-line @@ -41,7 +41,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => { useEffect(() => { const javascriptVM = props.config.get('settings/always-use-vm') - if ((javascriptVM === null) || (javascriptVM === undefined)) etherumVM(props.config, true, dispatch) + if ((javascriptVM === null) || (javascriptVM === undefined)) ethereumVM(props.config, true, dispatch) }, [props.config]) const onchangeGenerateContractMetadata = (event) => { @@ -49,7 +49,7 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => { } const onchangeOption = (event) => { - etherumVM(props.config, event.target.checked, dispatch) + ethereumVM(props.config, event.target.checked, dispatch) } const textWrapEvent = (event) => { diff --git a/libs/remix-ui/settings/src/lib/settingsAction.ts b/libs/remix-ui/settings/src/lib/settingsAction.ts index c316af576f..846a6511b5 100644 --- a/libs/remix-ui/settings/src/lib/settingsAction.ts +++ b/libs/remix-ui/settings/src/lib/settingsAction.ts @@ -13,7 +13,7 @@ export const generateContractMetadat = (config, checked, dispatch) => { dispatch({ type: 'contractMetadata', payload: { isChecked: checked, textClass: checked ? textDark : textSecondary } }) } -export const etherumVM = (config, checked: boolean, dispatch) => { +export const ethereumVM = (config, checked: boolean, dispatch) => { config.set('settings/always-use-vm', checked) dispatch({ type: 'ethereumVM', payload: { isChecked: checked, textClass: checked ? textDark : textSecondary } }) }