Skip to content

Commit

Permalink
fix(app): pass individual provider ids instead of platform ids (#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
digitalmnt committed Jun 6, 2024
1 parent 6b92070 commit b206f82
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
11 changes: 10 additions & 1 deletion app/__tests__/hooks/useOneClickVerification.test.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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)
);
Expand Down
4 changes: 2 additions & 2 deletions app/hooks/useOneClickVerification.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const useOneClickVerification = () => {
// Nothing to do
return;
}
const platformTypes = possiblePlatforms.map((platform) => platform.platformProps.platform.platformId);

setUserVerificationState({
...verificationState,
loading: true,
Expand All @@ -56,7 +56,7 @@ export const useOneClickVerification = () => {
iamUrl,
{
type: "EVMBulkVerify",
types: platformTypes,
types: validatedProviderIds,
version: "0.0.0",
address: address || "",
proofs: {},
Expand Down

0 comments on commit b206f82

Please sign in to comment.