use inferred type for owners in OwnerForm

This commit is contained in:
Mikhail Mikheev 2020-07-15 18:25:54 +04:00
parent 211749aab8
commit 4eb5a6b12f
1 changed files with 1 additions and 2 deletions

View File

@ -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 (