Skip to content

Commit b0865e3

Browse files
authored
fix: i love ci
1 parent 5fcad09 commit b0865e3

1 file changed

Lines changed: 20 additions & 19 deletions

File tree

islands/MigrationProgress.tsx

Lines changed: 20 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ import {
55
MigrationErrorType,
66
MigrationProgressProps,
77
MigrationStateInfo,
8-
MigrationStep
8+
MigrationStep,
99
} from "../lib/client.ts";
1010

1111
/**
@@ -80,27 +80,28 @@ export default function MigrationProgress(props: MigrationProgressProps) {
8080
return true;
8181
};
8282

83-
const client = new MigrationClient(
83+
const client = new MigrationClient(
8484
{
8585
updateStepStatus,
86-
if(stepNum === 2){
87-
// Update step name to prompt for token
88-
setSteps((prevSteps) =>
89-
prevSteps.map((step, i) =>
90-
i === 2
91-
? {
92-
...step,
93-
name:
94-
"Enter the token sent to your email to complete identity migration",
95-
}
96-
: step
97-
)
98-
);
99-
}
86+
nextStepHook(stepNum) {
87+
if (stepNum === 2) {
88+
// Update step name to prompt for token
89+
setSteps((prevSteps) =>
90+
prevSteps.map((step, i) =>
91+
i === 2
92+
? {
93+
...step,
94+
name:
95+
"Enter the token sent to your email to complete identity migration",
96+
}
97+
: step
98+
)
99+
);
100+
}
101+
},
102+
setRetryAttempts,
103+
setShowContinueAnyway,
100104
},
101-
setRetryAttempts,
102-
setShowContinueAnyway,
103-
}
104105
);
105106

106107
const continueAnyway = (stepNum: number) => {

0 commit comments

Comments
 (0)