diff --git a/app/screens/PublicLinkScreen/PublicLinkScreen.tsx b/app/screens/PublicLinkScreen/PublicLinkScreen.tsx index cfbccd8c..ac580ced 100644 --- a/app/screens/PublicLinkScreen/PublicLinkScreen.tsx +++ b/app/screens/PublicLinkScreen/PublicLinkScreen.tsx @@ -25,6 +25,8 @@ export default function PublicLinkScreen ({ navigation, route }: PublicLinkScree const share = useShareCredentials(); const { rawCredentialRecord, screenMode = PublicLinkScreenMode.Default } = route.params; + const { credential } = rawCredentialRecord; + const { name } = credential; const [publicLink, setPublicLink] = useState(null); const [justCreated, setJustCreated] = useState(false); const isVerified = useVerifyCredential(rawCredentialRecord)?.result.verified; @@ -256,7 +258,7 @@ export default function PublicLinkScreen ({ navigation, route }: PublicLinkScree <> {screenMode === PublicLinkScreenMode.Default && ( - {rawCredentialRecord?.credential?.name || 'Credential'} + {name || 'Credential'} )} {instructionsText}