1
0
mirror of https://github.com/oceanprotocol/market.git synced 2024-12-02 05:57:29 +01:00

fix typing

This commit is contained in:
EnzoVezzaro 2022-10-19 08:07:13 -04:00
parent 4250c06e33
commit fb6ecc6c5b

View File

@ -145,14 +145,14 @@ export default function Edit({
asset?.metadata, asset?.metadata,
asset?.services[0]?.timeout, asset?.services[0]?.timeout,
asset?.accessDetails?.price asset?.accessDetails?.price
) as FormEditMetadataValues ) as unknown as FormEditMetadataValues
return ( return (
<Formik <Formik
enableReinitialize enableReinitialize
initialValues={initialValues} initialValues={initialValues}
validationSchema={validationSchema} validationSchema={validationSchema}
onSubmit={async (values, { resetForm }) => { onSubmit={async (values: any, { resetForm }) => {
// move user's focus to top of screen // move user's focus to top of screen
window.scrollTo({ top: 0, left: 0, behavior: 'smooth' }) window.scrollTo({ top: 0, left: 0, behavior: 'smooth' })
// kick off editing // kick off editing