typescript-typenfehler behoben.. npm run lint läuft nun fehlerfrei durch.
This commit is contained in:
@@ -104,7 +104,10 @@ const WizardBody: React.FC<{
|
||||
[t]
|
||||
);
|
||||
|
||||
const currentIndex = useMemo(() => stepConfig.findIndex((step) => step.id === currentStep), [currentStep]);
|
||||
const currentIndex = useMemo(
|
||||
() => stepConfig.findIndex((step) => step.id === currentStep),
|
||||
[currentStep, stepConfig]
|
||||
);
|
||||
const progress = useMemo(() => {
|
||||
if (currentIndex < 0) {
|
||||
return 0;
|
||||
|
||||
Reference in New Issue
Block a user