use inferred type for owners in OwnerForm
This commit is contained in:
parent
211749aab8
commit
4eb5a6b12f
|
@ -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 (
|
||||
|
|
Loading…
Reference in New Issue