Skip to content

Commit

Permalink
lint fix #2
Browse files Browse the repository at this point in the history
  • Loading branch information
Isaac Airmet authored and dmitrizagidulin committed Sep 5, 2023
1 parent 0d31c42 commit 77ae2bd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/screens/PublicLinkScreen/PublicLinkScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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<string | null>(null);
const [justCreated, setJustCreated] = useState(false);
const isVerified = useVerifyCredential(rawCredentialRecord)?.result.verified;
Expand Down Expand Up @@ -256,7 +258,7 @@ export default function PublicLinkScreen ({ navigation, route }: PublicLinkScree
<>
{screenMode === PublicLinkScreenMode.Default && (
<Text style={styles.title}>
{rawCredentialRecord?.credential?.name || 'Credential'}
{name || 'Credential'}
</Text>
)}
<Text style={styles.instructions}>{instructionsText}</Text>
Expand Down

0 comments on commit 77ae2bd

Please sign in to comment.