Skip to content

Commit

Permalink
added a empty string instead doublechecking walletOnfidoData.sdkToken
Browse files Browse the repository at this point in the history
  • Loading branch information
jayeshmangwani committed Mar 19, 2024
1 parent fa54fc5 commit b95b8df
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/EnablePayments/OnfidoStep.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -63,9 +63,9 @@ function OnfidoStep({walletOnfidoData = DEFAULT_WALLET_ONFIDO_DATA}: OnfidoStepP
onBackButtonPress={goToPreviousStep}
/>
<FullPageOfflineBlockingView>
{shouldShowOnfido && walletOnfidoData?.sdkToken ? (
{shouldShowOnfido ? (
<Onfido
sdkToken={walletOnfidoData.sdkToken}
sdkToken={walletOnfidoData.sdkToken ?? ''}
onUserExit={goBack}
onError={reportError}
onSuccess={verifyIdentity}
Expand Down

0 comments on commit b95b8df

Please sign in to comment.