Skip to content

Commit

Permalink
fix(app): linting
Browse files Browse the repository at this point in the history
  • Loading branch information
gdixon committed Sep 6, 2022
1 parent 3dc037b commit af7b1a3
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 4 deletions.
5 changes: 3 additions & 2 deletions app/components/PlatformCards/GitcoinPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,8 +162,9 @@ export default function GithubPlatform(): JSX.Element {
await handleAddStamps(vcs as Stamp[]);
datadogLogs.logger.info("Successfully saved Stamp", { platform: platformId });
// grab all providers who are verified from the verify response
const actualVerifiedProviders = providerIds.filter((providerId) =>
!!vcs.find((vc: Stamp | undefined) => vc?.credential?.credentialSubject?.provider === providerId)
const actualVerifiedProviders = providerIds.filter(
(providerId) =>
!!vcs.find((vc: Stamp | undefined) => vc?.credential?.credentialSubject?.provider === providerId)
);
// both verified and selected should look the same after save
setVerifiedProviders([...actualVerifiedProviders]);
Expand Down
5 changes: 3 additions & 2 deletions app/components/PlatformCards/TwitterPlatform.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -154,8 +154,9 @@ export default function TwitterPlatform(): JSX.Element {
// report success to datadog
datadogLogs.logger.info("Successfully saved Stamp", { platform: platformId });
// grab all providers who are verified from the verify response
const actualVerifiedProviders = providerIds.filter((providerId) =>
!!vcs.find((vc: Stamp | undefined) => vc?.credential?.credentialSubject?.provider === providerId)
const actualVerifiedProviders = providerIds.filter(
(providerId) =>
!!vcs.find((vc: Stamp | undefined) => vc?.credential?.credentialSubject?.provider === providerId)
);
// both verified and selected should look the same after save
setVerifiedProviders([...actualVerifiedProviders]);
Expand Down

0 comments on commit af7b1a3

Please sign in to comment.