Skip to content

Commit

Permalink
fix: update persona data request undefined
Browse files Browse the repository at this point in the history
  • Loading branch information
xstelea committed Aug 30, 2023
1 parent 51ed568 commit 609cf2b
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 12 deletions.
8 changes: 4 additions & 4 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down
1 change: 0 additions & 1 deletion src/data-request/data-request.ts
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,6 @@ export const DataRequestClient = ({
const { id } = requestItemClient.add(
isLoginRequest ? 'loginRequest' : 'dataRequest'
)

return walletClient
.request(walletDataRequest, id)
.mapErr(
Expand Down
12 changes: 6 additions & 6 deletions src/data-request/transformations/rdt-to-wallet.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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(),
Expand Down Expand Up @@ -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) {
Expand Down

0 comments on commit 609cf2b

Please sign in to comment.