From f7c8f95af16edf07f6599eea3a91d2a448cc6ab0 Mon Sep 17 00:00:00 2001 From: Mike Parkhill Date: Tue, 30 Jul 2024 18:33:10 -0400 Subject: [PATCH] =?UTF-8?q?Revert=20"horrible=20hack=20to=20turn=20biometr?= =?UTF-8?q?ic.data=20into=20a=20string=20to=20satisfy=20the=20sch=E2=80=A6?= =?UTF-8?q?"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 443a72712be69ce798182fb02dbd2d2e09fc6694. --- pages/org/quotient/index.jsx | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/pages/org/quotient/index.jsx b/pages/org/quotient/index.jsx index 1b9dba4..0d723de 100644 --- a/pages/org/quotient/index.jsx +++ b/pages/org/quotient/index.jsx @@ -99,14 +99,7 @@ const QuotientBankForm = () => { function getBiometricalData() { if (retrievedData !== null) { const credential = retrievedData.credentials.find((obj) => Object.prototype.hasOwnProperty.call(obj.credentialSubject, 'biometric')); - - // TODO: get wallet to return a string rather than a boolean so we don't have to do this hack - const biometric = credential?.credentialSubject?.biometric; - - if (biometric) { - biometric.data = biometric.data?.toString(); - return biometric; - } + if (credential) return credential.credentialSubject.biometric; } return null; }