From 5d964b5e9bec31acf72c9c6cd4a790d96770a60b Mon Sep 17 00:00:00 2001 From: tams sokari Date: Thu, 5 Oct 2023 10:05:32 -0400 Subject: [PATCH] fix: fix "others" case insensitive bug --- src/js/doc-verification.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/doc-verification.js b/src/js/doc-verification.js index 46e72306..5dfe505f 100644 --- a/src/js/doc-verification.js +++ b/src/js/doc-verification.js @@ -274,7 +274,7 @@ import { version as sdkVersion } from "../../package.json"; console.error( `SmileIdentity - ${countryCode}-${idSelectionIdType} has been deprecated`, ); - if (idSelectionIdType !== "Others") { + if (idSelectionIdType.toLowerCase() !== "others") { constraints[countryIndex].id_types.push({ code: idSelectionIdType, has_back: false,