File tree 1 file changed +3
-4
lines changed
1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ import {withOnyx} from 'react-native-onyx';
3
3
import type { OnyxEntry } from 'react-native-onyx' ;
4
4
import FullPageOfflineBlockingView from '@components/BlockingViews/FullPageOfflineBlockingView' ;
5
5
import HeaderWithBackButton from '@components/HeaderWithBackButton' ;
6
- // @ts -expect-error TODO: Remove this once Onfido (https://github.com/Expensify/App/issues/25136) is migrated to TypeScript.
7
6
import Onfido from '@components/Onfido' ;
7
+ import type { OnfidoData } from '@components/Onfido/types' ;
8
8
import useLocalize from '@hooks/useLocalize' ;
9
9
import Growl from '@libs/Growl' ;
10
10
import Navigation from '@libs/Navigation/Navigation' ;
@@ -45,8 +45,7 @@ function OnfidoStep({walletOnfidoData = DEFAULT_WALLET_ONFIDO_DATA}: OnfidoStepP
45
45
} , [ translate ] ) ;
46
46
47
47
const verifyIdentity = useCallback (
48
- // @ts -expect-error TODO: Remove this once Onfido (https://github.com/Expensify/App/issues/25136) is migrated to TypeScript.
49
- ( data ) => {
48
+ ( data : OnfidoData ) => {
50
49
BankAccounts . verifyIdentity ( {
51
50
onfidoData : JSON . stringify ( {
52
51
...data ,
@@ -66,7 +65,7 @@ function OnfidoStep({walletOnfidoData = DEFAULT_WALLET_ONFIDO_DATA}: OnfidoStepP
66
65
< FullPageOfflineBlockingView >
67
66
{ shouldShowOnfido ? (
68
67
< Onfido
69
- sdkToken = { walletOnfidoData . sdkToken }
68
+ sdkToken = { walletOnfidoData . sdkToken ?? '' }
70
69
onUserExit = { goBack }
71
70
onError = { reportError }
72
71
onSuccess = { verifyIdentity }
You can’t perform that action at this time.
0 commit comments