Skip to content

Commit

Permalink
fix: build
Browse files Browse the repository at this point in the history
  • Loading branch information
tom1145 committed May 17, 2024
1 parent 1fa147a commit 6fdee5f
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/Asset/Edit/FormActions.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,15 @@ import { useAsset } from '@context/Asset'
import Button from '@shared/atoms/Button'
import styles from './FormActions.module.css'
import Link from 'next/link'
import { ComputeEditForm, MetadataEditForm } from './_types'
import { MetadataEditForm } from './_types'

export default function FormActions({
handleClick
}: {
handleClick?: () => void
}): ReactElement {
const { isAssetNetwork, asset } = useAsset()
const { isValid }: FormikContextType<MetadataEditForm | ComputeEditForm> =
useFormikContext()
const { isValid }: FormikContextType<MetadataEditForm> = useFormikContext()

const isSubmitDisabled = !isValid || !isAssetNetwork

Expand Down

0 comments on commit 6fdee5f

Please sign in to comment.