diff --git a/src/components/organisms/AssetContent/index.tsx b/src/components/organisms/AssetContent/index.tsx index 4f96f5c62..4d71f7232 100644 --- a/src/components/organisms/AssetContent/index.tsx +++ b/src/components/organisms/AssetContent/index.tsx @@ -50,10 +50,8 @@ export default function AssetContent(props: AssetContentProps): ReactElement { const [showPricing, setShowPricing] = useState(false) const [showEdit, setShowEdit] = useState() const [showEditCompute, setShowEditCompute] = useState() - const [ - showEditAdvanceSettings, - setShowEditAdvanceSettings - ] = useState() + const [showEditAdvanceSettings, setShowEditAdvanceSettings] = + useState() const [isOwner, setIsOwner] = useState(false) const { ddo, price, metadata, type } = useAsset() const { appConfig } = useSiteMetadata() diff --git a/src/models/FormEditCredential.ts b/src/models/FormEditCredential.ts index f6ce7d4ac..f604efeed 100644 --- a/src/models/FormEditCredential.ts +++ b/src/models/FormEditCredential.ts @@ -12,13 +12,12 @@ export interface AdvanceSettingsForm { isOrderDisabled: boolean } -export const validationSchema: Yup.SchemaOf = Yup.object().shape( - { +export const validationSchema: Yup.SchemaOf = + Yup.object().shape({ allow: Yup.array().nullable(), deny: Yup.array().nullable(), isOrderDisabled: Yup.boolean().nullable() - } -) + }) function getAssetCredentials( credentials: Credentials,