From b7d62651ebe4f41c16437a84dd35e1ac231e455f Mon Sep 17 00:00:00 2001 From: ioedeveloper Date: Wed, 7 Jul 2021 11:53:37 +0100 Subject: [PATCH] Remove ternary operator logic --- libs/remix-ui/settings/src/lib/remix-ui-settings.tsx | 10 +++++----- 1 file changed, 5 insertions(+), 5 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 2d20ecf83c..b1676d5fdd 100644 --- a/libs/remix-ui/settings/src/lib/remix-ui-settings.tsx +++ b/libs/remix-ui/settings/src/lib/remix-ui-settings.tsx @@ -72,11 +72,11 @@ export const RemixUiSettings = (props: RemixUiSettingsProps) => { } const generalConfig = () => { - const isMetadataChecked = (props.config.get('settings/generate-contract-metadata') === null) || (props.config.get('settings/generate-contract-metadata') === undefined) ? false : props.config.get('settings/generate-contract-metadata') - const isEthereumVMChecked = (props.config.get('settings/always-use-vm') === null) || (props.config.get('settings/always-use-vm') === undefined) ? false : props.config.get('settings/always-use-vm') - const isEditorWrapChecked = (props.config.get('settings/text-wrap') === null) || (props.config.get('settings/text-wrap') === undefined) ? false : props.config.get('settings/text-wrap') - const isPersonalChecked = (props.config.get('settings/personal-mode') === null) || (props.config.get('settings/personal-mode') === undefined) ? false : props.config.get('settings/personal-mode') - const isMatomoChecked = (props.config.get('settings/matomo-analytics') === null) || (props.config.get('settings/matomo-analytics') === undefined) ? false : props.config.get('settings/matomo-analytics') + const isMetadataChecked = props.config.get('settings/generate-contract-metadata') || false + const isEthereumVMChecked = props.config.get('settings/always-use-vm') || false + const isEditorWrapChecked = props.config.get('settings/text-wrap') || false + const isPersonalChecked = props.config.get('settings/personal-mode') || false + const isMatomoChecked = props.config.get('settings/matomo-analytics') || false return (