From 79e80ea5e4a42af70b17aa2a48589697eef7d415 Mon Sep 17 00:00:00 2001 From: fernandomg Date: Tue, 14 Jul 2020 16:43:32 -0300 Subject: [PATCH] replace ternary with nullish coalescing operator --- src/routes/safe/components/Settings/Advanced/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/safe/components/Settings/Advanced/index.tsx b/src/routes/safe/components/Settings/Advanced/index.tsx index 58f1b672..545e95ef 100644 --- a/src/routes/safe/components/Settings/Advanced/index.tsx +++ b/src/routes/safe/components/Settings/Advanced/index.tsx @@ -2,7 +2,6 @@ import { Button, Loader, Text, Title, theme } from '@gnosis.pm/safe-react-compon import { makeStyles } from '@material-ui/core/styles' import TableContainer from '@material-ui/core/TableContainer' import cn from 'classnames' -import { List } from 'immutable' import { useSnackbar } from 'notistack' import React from 'react' import { useDispatch, useSelector } from 'react-redux' @@ -82,7 +81,7 @@ const Advanced = (): JSX.Element => { const nonce = useSelector(safeNonceSelector) const granted = useSelector(grantedSelector) const modules = useSelector(safeModulesSelector) - const moduleData = modules !== null ? getModuleData(List(modules)) : modules + const moduleData = modules ?? getModuleData(modules) const [viewRemoveModuleModal, setViewRemoveModuleModal] = React.useState(false) const hideRemoveModuleModal = () => setViewRemoveModuleModal(false)