Skip to content

Commit

Permalink
fixed tests and linting
Browse files Browse the repository at this point in the history
Signed-off-by: wadeking98 <[email protected]>
  • Loading branch information
wadeking98 committed Nov 24, 2023
1 parent af7c58b commit cdfc8ed
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 359 deletions.
6 changes: 4 additions & 2 deletions packages/legacy/core/App/screens/CredentialOffer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ import { DispatchAction } from '../contexts/reducers/store'
import { useStore } from '../contexts/store'
import { useTheme } from '../contexts/theme'
import { useTour } from '../contexts/tour/tour-context'
import { useOutOfBandByConnectionId } from '../hooks/connections'
import { BifoldError } from '../types/error'
import { TabStacks, NotificationStackParams, Screens } from '../types/navigators'
import { ModalUsage } from '../types/remove'
Expand All @@ -36,7 +37,6 @@ import { buildFieldsFromAnonCredsCredential } from '../utils/oca'
import { testIdWithKey } from '../utils/testable'

import CredentialOfferAccept from './CredentialOfferAccept'
import { useOutOfBandByConnectionId } from '../hooks/connections'

type CredentialOfferProps = StackScreenProps<NotificationStackParams, Screens.CredentialOffer>

Expand Down Expand Up @@ -222,7 +222,9 @@ const CredentialOffer: React.FC<CredentialOfferProps> = ({ navigation, route })
}}
>
{loading ? <RecordLoading /> : null}
{credentialConnectionLabel && goalCode === 'aries.vc.issue' ? (<ConnectionAlert connectionID={credentialConnectionLabel} />) : null}
{credentialConnectionLabel && goalCode === 'aries.vc.issue' ? (
<ConnectionAlert connectionID={credentialConnectionLabel} />

Check warning on line 226 in packages/legacy/core/App/screens/CredentialOffer.tsx

View check run for this annotation

Codecov / codecov/patch

packages/legacy/core/App/screens/CredentialOffer.tsx#L226

Added line #L226 was not covered by tests
) : null}
<View style={styles.footerButton}>
<Button
title={t('Global.Accept')}
Expand Down
Loading

0 comments on commit cdfc8ed

Please sign in to comment.