From 609cf2bda4d80580bd756811f325874cbb50d4e5 Mon Sep 17 00:00:00 2001 From: Alex Stelea Date: Wed, 30 Aug 2023 10:11:00 +0200 Subject: [PATCH] fix: update persona data request undefined --- package-lock.json | 8 ++++---- package.json | 2 +- src/data-request/data-request.ts | 1 - src/data-request/transformations/rdt-to-wallet.ts | 12 ++++++------ 4 files changed, 11 insertions(+), 12 deletions(-) diff --git a/package-lock.json b/package-lock.json index 6e4b0c6b..cfe570cb 100644 --- a/package-lock.json +++ b/package-lock.json @@ -10,7 +10,7 @@ "license": "Apache-2.0", "dependencies": { "@radixdlt/babylon-gateway-api-sdk": "^1.0.0-grape.1", - "@radixdlt/connect-button": "0.13.3", + "@radixdlt/connect-button": "0.13.4", "@radixdlt/wallet-sdk": "0.10.1-alpha.1", "immer": "^10.0.2", "lodash.isequal": "^4.5.0", @@ -3288,9 +3288,9 @@ "integrity": "sha512-EWyj9p/VpLeFl90YPJhWoaxQkdVdMnG4V9SOW3x8CNucLcW7jg/Ewf7tQ4NZEp4cNrDUNdBPeQJXxp64+IZJ8w==" }, "node_modules/@radixdlt/connect-button": { - "version": "0.13.3", - "resolved": "https://registry.npmjs.org/@radixdlt/connect-button/-/connect-button-0.13.3.tgz", - "integrity": "sha512-XUj47PBO81hW4gQ4ViNhJaoaOjGZcGEEMvVi+r0u8wPTpyeGRwd+lX8Kyp0nNpTLASaNdZadM6bO/18RNZ/yGg==", + "version": "0.13.4", + "resolved": "https://registry.npmjs.org/@radixdlt/connect-button/-/connect-button-0.13.4.tgz", + "integrity": "sha512-5jeiiFJLBnJzC3nimWY7sKzQgRgtHAb0rMRjxtBxdBusr/HjTIoedLmOHBv5Yc+kpJSKAdtBp/PovaVOcM06qQ==", "dependencies": { "lit": "^2.7.5" }, diff --git a/package.json b/package.json index 34a06fad..f8f058a6 100644 --- a/package.json +++ b/package.json @@ -49,7 +49,7 @@ }, "dependencies": { "@radixdlt/babylon-gateway-api-sdk": "^1.0.0-grape.1", - "@radixdlt/connect-button": "0.13.3", + "@radixdlt/connect-button": "0.13.4", "@radixdlt/wallet-sdk": "0.10.1-alpha.1", "immer": "^10.0.2", "lodash.isequal": "^4.5.0", diff --git a/src/data-request/data-request.ts b/src/data-request/data-request.ts index c3d65894..45760c3b 100644 --- a/src/data-request/data-request.ts +++ b/src/data-request/data-request.ts @@ -110,7 +110,6 @@ export const DataRequestClient = ({ const { id } = requestItemClient.add( isLoginRequest ? 'loginRequest' : 'dataRequest' ) - return walletClient .request(walletDataRequest, id) .mapErr( diff --git a/src/data-request/transformations/rdt-to-wallet.ts b/src/data-request/transformations/rdt-to-wallet.ts index 220aaf75..00bba39f 100644 --- a/src/data-request/transformations/rdt-to-wallet.ts +++ b/src/data-request/transformations/rdt-to-wallet.ts @@ -21,9 +21,9 @@ export const TransformRdtDataRequestToWalletRequestInput = object({ challenge: string().optional(), }).optional(), personaData: object({ - fullName: boolean().optional(), - phoneNumbers: NumberOfValues.optional(), - emailAddresses: NumberOfValues.optional(), + isRequestingName: boolean().optional(), + numberOfRequestedPhoneNumbers: NumberOfValues.optional(), + numberOfRequestedEmailAddresses: NumberOfValues.optional(), reset: boolean(), oneTime: boolean().optional(), }).optional(), @@ -114,9 +114,9 @@ const withPersonaDataRequestItem = if (input.personaData) { const { - fullName: isRequestingName, - phoneNumbers: numberOfRequestedPhoneNumbers, - emailAddresses: numberOfRequestedEmailAddresses, + isRequestingName, + numberOfRequestedPhoneNumbers, + numberOfRequestedEmailAddresses, } = input.personaData if (input.personaData?.oneTime) {