src/hooks/useMetadata/useMetadata.ts
Function useMetadata
has 85 lines of code (exceeds 25 allowed). Consider refactoring. Open
Open
function useMetadata(asset?: DID | string | DDO): UseMetadata {
const { ocean, config, status, networkId } = useOcean()
const [internalDdo, setDDO] = useState<DDO>()
const [internalDid, setDID] = useState<DID | string>()
const [metadata, setMetadata] = useState<Metadata>()