From 54fc6a73ca4eb374ef855eef879d95a581d96479 Mon Sep 17 00:00:00 2001 From: Isaac Airmet Date: Wed, 30 Aug 2023 09:41:16 -0600 Subject: [PATCH] lint fix #2 --- app/screens/PublicLinkScreen/PublicLinkScreen.tsx | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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}