diff --git a/package-lock.json b/package-lock.json index 0768d2c49609..283e3333b1ba 100644 --- a/package-lock.json +++ b/package-lock.json @@ -67,7 +67,7 @@ "lodash-es": "4.17.21", "lottie-react-native": "6.5.1", "mapbox-gl": "^2.15.0", - "onfido-sdk-ui": "14.15.0", + "onfido-sdk-ui": "14.42.0", "process": "^0.11.10", "pusher-js": "8.3.0", "react": "18.3.1", @@ -30369,7 +30369,9 @@ } }, "node_modules/onfido-sdk-ui": { - "version": "14.15.0", + "version": "14.42.0", + "resolved": "https://registry.npmjs.org/onfido-sdk-ui/-/onfido-sdk-ui-14.42.0.tgz", + "integrity": "sha512-KBcKWtvMw2VhNIlmlZ/DmlIoqv7j3+E6l/3j5ISp6TpSc9+C30VlhPsUIwMb2EnD4u5uiBmhSiCm/UZsj+iJjA==", "license": "SEE LICENSE in LICENSE" }, "node_modules/open": { diff --git a/package.json b/package.json index 291bd0a7bb07..5664151752bf 100644 --- a/package.json +++ b/package.json @@ -134,7 +134,7 @@ "lodash-es": "4.17.21", "lottie-react-native": "6.5.1", "mapbox-gl": "^2.15.0", - "onfido-sdk-ui": "14.15.0", + "onfido-sdk-ui": "14.42.0", "process": "^0.11.10", "pusher-js": "8.3.0", "react": "18.3.1", diff --git a/src/components/Onfido/BaseOnfidoWeb.tsx b/src/components/Onfido/BaseOnfidoWeb.tsx index 2a2882c155eb..c5ccf2e36929 100644 --- a/src/components/Onfido/BaseOnfidoWeb.tsx +++ b/src/components/Onfido/BaseOnfidoWeb.tsx @@ -11,7 +11,7 @@ import variables from '@styles/variables'; import CONST from '@src/CONST'; import {isEmptyObject} from '@src/types/utils/EmptyObject'; import './index.css'; -import type {OnfidoElement, OnfidoError, OnfidoProps} from './types'; +import type {OnfidoElement, OnfidoProps} from './types'; type InitializeOnfidoProps = OnfidoProps & Pick & { @@ -94,7 +94,7 @@ function initializeOnfido({sdkToken, onSuccess, onError, onUserExit, preferredLo } onSuccess(data); }, - onError: (error: OnfidoError) => { + onError: (error) => { const errorType = error.type; const errorMessage: string = error.message ?? CONST.ERROR.UNKNOWN_ERROR; Log.hmmm('Onfido error', {errorType, errorMessage}); diff --git a/src/components/Onfido/types.ts b/src/components/Onfido/types.ts index 3e88ce3b2dda..f08cdbb566b0 100644 --- a/src/components/Onfido/types.ts +++ b/src/components/Onfido/types.ts @@ -1,6 +1,6 @@ import type {OnfidoResult} from '@onfido/react-native-sdk'; import type {Handle} from 'onfido-sdk-ui/types/Onfido'; -import type {CompleteData} from 'onfido-sdk-ui/types/Types'; +import type {CompleteData} from 'onfido-sdk-ui/types/shared/SdkParameters'; import type {OnyxEntry} from 'react-native-onyx'; type OnfidoData = CompleteData | OnfidoResult;