Skip to content

Commit

Permalink
lint fix attempt #1
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 9a4ec9e commit 0d31c42
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions app/screens/PublicLinkScreen/PublicLinkScreen.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,6 @@ import { PublicLinkScreenProps } from './PublicLinkScreen.d';
import dynamicStyleSheet from './PublicLinkScreen.styles';
import { LoadingIndicatorDots, NavHeader } from '../../components';
import { Ionicons, MaterialIcons } from '@expo/vector-icons';
import credential from '../../mock/credential';
import { createPublicLinkFor, getPublicViewLink, linkedinUrlFrom, unshareCredential } from '../../lib/publicLink';
import { useDynamicStyles, useShareCredentials, useVerifyCredential } from '../../hooks';
import { clearGlobalModal, displayGlobalModal } from '../../lib/globalModal';
Expand Down Expand Up @@ -257,7 +256,7 @@ export default function PublicLinkScreen ({ navigation, route }: PublicLinkScree
<>
{screenMode === PublicLinkScreenMode.Default && (
<Text style={styles.title}>
{rawCredentialRecord.credential.name || 'Credential'}
{rawCredentialRecord?.credential?.name || 'Credential'}
</Text>
)}
<Text style={styles.instructions}>{instructionsText}</Text>
Expand Down

0 comments on commit 0d31c42

Please sign in to comment.