Skip to content

Commit

Permalink
fix(app): adds ability to verify multiple vcs at once
Browse files Browse the repository at this point in the history
  • Loading branch information
aminah-io committed Sep 6, 2022
1 parent 5af14b6 commit f399949
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
3 changes: 2 additions & 1 deletion app/components/PlatformCards/EthPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,8 @@ export default function SnapshotPlatform(): JSX.Element {
await handleAddStamps(vcs as Stamp[]);
datadogLogs.logger.info("Successfully saved Stamp", { platform: platformId });
const verifiedProviders = providerIds.filter(
(providerId) => typeof allProvidersState[providerId]?.stamp?.credential !== "undefined"
(providerId) =>
!!vcs.find((vc: Stamp | undefined) => vc?.credential?.credentialSubject?.provider === providerId)
);
// update the verified and selected providers
setVerifiedProviders([...verifiedProviders]);
Expand Down
1 change: 0 additions & 1 deletion types/src/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -183,7 +183,6 @@ export type PROVIDER_ID =
| "Snapshot"
| "SnapshotProposalsProvider"
| "SnapshotVotesProvider"
| "ETH"
| "ethPossessionsGte#1"
| "ethPossessionsGte#10"
| "ethPossessionsGte#32"
Expand Down

0 comments on commit f399949

Please sign in to comment.