Skip to content

Commit

Permalink
fix: unneeded param
Browse files Browse the repository at this point in the history
  • Loading branch information
tim-schultz authored and nutrina committed Jul 5, 2024
1 parent cd4c10e commit 6aab25c
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions app/context/stampClaimingContext.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ export type StampClaimForPlatform = {

export interface StampClaimingContextState {
claimCredentials: (
handleClaimStep: (step: number, error?: PLATFORM_ID | "EVMBulkVerify") => Promise<void>,
handleClaimStep: (step: number) => Promise<void>,
indicateError: (platform: PLATFORM_ID | "EVMBulkVerify") => void,
platformGroups: StampClaimForPlatform[]
) => Promise<void>;
Expand All @@ -80,7 +80,7 @@ export interface StampClaimingContextState {

const startingState: StampClaimingContextState = {
claimCredentials: async (
handleClaimStep: (step: number, error?: PLATFORM_ID | "EVMBulkVerify") => Promise<void>,
handleClaimStep: (step: number) => Promise<void>,
indicateError: (platform: PLATFORM_ID | "EVMBulkVerify") => void,
platformGroups: StampClaimForPlatform[]
) => {},
Expand Down Expand Up @@ -142,7 +142,7 @@ export const StampClaimingContextProvider = ({ children }: { children: any }) =>

// fetch VCs from IAM server
const claimCredentials = async (
handleClaimStep: (step: number, error?: PLATFORM_ID | "EVMBulkVerify") => Promise<void>,
handleClaimStep: (step: number) => Promise<void>,
indicateError: (platform: PLATFORM_ID | "EVMBulkVerify") => void,
platformGroups: StampClaimForPlatform[]
): Promise<any> => {
Expand All @@ -161,7 +161,7 @@ export const StampClaimingContextProvider = ({ children }: { children: any }) =>

if ((platform || platformId === "EVMBulkVerify") && selectedProviders.length > 0) {
step++;
await handleClaimStep(step, platformId);
await handleClaimStep(step);
datadogLogs.logger.info("Saving Stamp", { platform: platformId });
setStatus(StampClaimProgressStatus.InProgress);

Expand Down

0 comments on commit 6aab25c

Please sign in to comment.