diff --git a/src/components/molecules/AssetTitle.tsx b/src/components/molecules/AssetTitle.tsx index 92c9c3c20..faedf45d3 100644 --- a/src/components/molecules/AssetTitle.tsx +++ b/src/components/molecules/AssetTitle.tsx @@ -3,11 +3,18 @@ import { Link } from 'gatsby' import React, { ReactElement } from 'react' import styles from './AssetTitle.module.css' -export default function AssetTitle({ did }: { did: string }): ReactElement { - const { title } = useMetadata(did) +export default function AssetTitle({ + did, + title +}: { + did?: string + title?: string +}): ReactElement { + const metadata = useMetadata(did) + return (