diff --git a/CHANGELOG.md b/CHANGELOG.md index b33b481f..53ee1660 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -12,6 +12,7 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0 - Updated Storybook from 7.6.15 to 8.1.11 - Updated readme with instructions on how to run the example app in development - Fixed the example app environment/endpoints +- Fixed biometric verification requiring id images ## [1.3.4] - 2024-07-01 diff --git a/packages/embed/src/js/biometric-kyc.js b/packages/embed/src/js/biometric-kyc.js index 44facdf4..5080128f 100644 --- a/packages/embed/src/js/biometric-kyc.js +++ b/packages/embed/src/js/biometric-kyc.js @@ -347,8 +347,12 @@ import { version as sdkVersion } from '../../package.json'; 'smart-camera-web.publish', (event) => { images = event.detail.images; - setActiveScreen(UploadProgressScreen); - handleFormSubmit(event); + const idRequiresTOTPConsent = ['BVN_MFA'].includes(id_info.id_type); + if (idRequiresTOTPConsent) { + handleFormSubmit(); + } else { + setActiveScreen(IDInfoForm); + } }, false, ); diff --git a/packages/web-components/components/smart-camera-web/src/SmartCameraWeb.js b/packages/web-components/components/smart-camera-web/src/SmartCameraWeb.js index 3b1e3941..3ef47cea 100644 --- a/packages/web-components/components/smart-camera-web/src/SmartCameraWeb.js +++ b/packages/web-components/components/smart-camera-web/src/SmartCameraWeb.js @@ -109,7 +109,11 @@ class SmartCameraWeb extends HTMLElement { 'selfie-capture-screens.publish', (event) => { this._data.images = event.detail.images; - this.setActiveScreen(this.documentCapture); + if (!this.captureId) { + this._publishSelectedImages(); + } else { + this.setActiveScreen(this.documentCapture); + } }, ); @@ -186,6 +190,10 @@ class SmartCameraWeb extends HTMLElement { ); } + get captureId() { + return this.hasAttribute('capture-id'); + } + get documentType() { return this.getAttribute('document-type'); }