From 321ef09313a383e7cfb6ba9f5eaf17f03c48dfb3 Mon Sep 17 00:00:00 2001 From: EnzoVezzaro Date: Fri, 9 Sep 2022 09:57:10 -0400 Subject: [PATCH] fix typing issue --- src/components/Asset/Edit/EditMetadata.tsx | 5 ++--- src/components/Asset/Edit/FormEditMetadata.tsx | 2 +- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/src/components/Asset/Edit/EditMetadata.tsx b/src/components/Asset/Edit/EditMetadata.tsx index 3da195eb8..23cb4d98c 100644 --- a/src/components/Asset/Edit/EditMetadata.tsx +++ b/src/components/Asset/Edit/EditMetadata.tsx @@ -12,7 +12,7 @@ import { MetadataEditForm } from './_types' import { useWeb3 } from '@context/Web3' import { useUserPreferences } from '@context/UserPreferences' import Web3Feedback from '@shared/Web3Feedback' -import FormEditMetadata from './FormEditMetadata' +import FormEditMetadata, { FormEditMetadataValues } from './FormEditMetadata' import { mapTimeoutStringToSeconds } from '@utils/ddo' import styles from './index.module.css' import content from '../../../../content/pages/editMetadata.json' @@ -24,7 +24,6 @@ import { useAsset } from '@context/Asset' import { setNftMetadata } from '@utils/nft' import { sanitizeUrl } from '@utils/url' import { getEncryptedFiles } from '@utils/provider' -import { initialValues } from 'src/components/Publish/_constants' export default function Edit({ asset @@ -144,7 +143,7 @@ export default function Edit({ asset?.metadata, asset?.services[0]?.timeout, asset?.accessDetails?.price - ) + ) as FormEditMetadataValues return (