From b206f82830eeec5767e1b1e7f77abd9a71841a48 Mon Sep 17 00:00:00 2001 From: Tim <6887938+digitalmnt@users.noreply.github.com> Date: Thu, 6 Jun 2024 12:41:07 -0600 Subject: [PATCH] fix(app): pass individual provider ids instead of platform ids (#2558) --- app/__tests__/hooks/useOneClickVerification.test.tsx | 11 ++++++++++- app/hooks/useOneClickVerification.tsx | 4 ++-- 2 files changed, 12 insertions(+), 3 deletions(-) diff --git a/app/__tests__/hooks/useOneClickVerification.test.tsx b/app/__tests__/hooks/useOneClickVerification.test.tsx index bcd8fb8cf..d5af9c571 100644 --- a/app/__tests__/hooks/useOneClickVerification.test.tsx +++ b/app/__tests__/hooks/useOneClickVerification.test.tsx @@ -260,7 +260,16 @@ describe("useOneClickVerification", () => { expect(fetchVerifiableCredential).toHaveBeenCalledWith( expect.any(String), expect.objectContaining({ - types: ["Ens", "NFT", "Lens", "GuildXYZ"], + types: [ + "Ens", + "NFTScore#50", + "NFTScore#75", + "NFTScore#90", + "NFT", + "Lens", + "GuildAdmin", + "GuildPassportMember", + ], }), expect.any(Function) ); diff --git a/app/hooks/useOneClickVerification.tsx b/app/hooks/useOneClickVerification.tsx index 380d4ff2d..4a4fa07d0 100644 --- a/app/hooks/useOneClickVerification.tsx +++ b/app/hooks/useOneClickVerification.tsx @@ -41,7 +41,7 @@ export const useOneClickVerification = () => { // Nothing to do return; } - const platformTypes = possiblePlatforms.map((platform) => platform.platformProps.platform.platformId); + setUserVerificationState({ ...verificationState, loading: true, @@ -56,7 +56,7 @@ export const useOneClickVerification = () => { iamUrl, { type: "EVMBulkVerify", - types: platformTypes, + types: validatedProviderIds, version: "0.0.0", address: address || "", proofs: {},