From 4eb5a6b12f10208df08dcdae408f9c14403990be Mon Sep 17 00:00:00 2001 From: Mikhail Mikheev Date: Wed, 15 Jul 2020 18:25:54 +0400 Subject: [PATCH] use inferred type for owners in OwnerForm --- .../ManageOwners/AddOwnerModal/screens/OwnerForm/index.tsx | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/routes/safe/components/Settings/ManageOwners/AddOwnerModal/screens/OwnerForm/index.tsx b/src/routes/safe/components/Settings/ManageOwners/AddOwnerModal/screens/OwnerForm/index.tsx index 4362bf0b..005f8cdf 100644 --- a/src/routes/safe/components/Settings/ManageOwners/AddOwnerModal/screens/OwnerForm/index.tsx +++ b/src/routes/safe/components/Settings/ManageOwners/AddOwnerModal/screens/OwnerForm/index.tsx @@ -19,7 +19,6 @@ import Hairline from 'src/components/layout/Hairline' import Paragraph from 'src/components/layout/Paragraph' import Row from 'src/components/layout/Row' import { safeOwnersSelector } from 'src/routes/safe/store/selectors' -import { SafeRecordProps } from 'src/routes/safe/store/models/safe' export const ADD_OWNER_NAME_INPUT_TEST_ID = 'add-owner-name-input' export const ADD_OWNER_ADDRESS_INPUT_TEST_ID = 'add-owner-address-testid' @@ -35,7 +34,7 @@ const OwnerForm = ({ classes, onClose, onSubmit }) => { const handleSubmit = (values) => { onSubmit(values) } - const owners: SafeRecordProps['owners'] = useSelector(safeOwnersSelector) + const owners = useSelector(safeOwnersSelector) const ownerDoesntExist = uniqueAddress(owners.map((o) => o.address)) return (