From 82dd228ce0797332f778439475e9d38b3351f3e8 Mon Sep 17 00:00:00 2001 From: yann300 Date: Thu, 16 Mar 2023 10:41:02 +0100 Subject: [PATCH] update default value --- libs/remix-ui/settings/src/lib/remix-ui-settings.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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 f08d6279c7..c1a9170833 100644 --- a/libs/remix-ui/settings/src/lib/remix-ui-settings.tsx +++ b/libs/remix-ui/settings/src/lib/remix-ui-settings.tsx @@ -45,13 +45,13 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => { if (javascriptVM === null || javascriptVM === undefined) ethereumVM(props.config, true, dispatch) const useAutoComplete = props.config.get('settings/auto-completion') - if (useAutoComplete === null || useAutoComplete === undefined) useAutoCompletion(props.config, false, dispatch) + if (useAutoComplete === null || useAutoComplete === undefined) useAutoCompletion(props.config, true, dispatch) const displayErrors = props.config.get('settings/display-errors') - if (displayErrors === null || displayErrors === undefined) useDisplayErrors(props.config, false, dispatch) + if (displayErrors === null || displayErrors === undefined) useDisplayErrors(props.config, true, dispatch) const useShowGas = props.config.get('settings/show-gas') - if (useShowGas === null || useShowGas === undefined) useShowGasInEditor(props.config, false, dispatch) + if (useShowGas === null || useShowGas === undefined) useShowGasInEditor(props.config, true, dispatch) } useEffect(() => initValue(), [resetState, props.config]) useEffect(() => initValue(), [])