sparkletown/sparkle

View on GitHub
src/hooks/useDynamicInput.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function useDynamicInput has 28 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const useDynamicInput = (questions?: number) => {
  const defaultCounter = questions ?? 0;
  const defaultIndexes = questions
    ? Array.from(Array(questions)).map((_, index) => index)
    : [];
Severity: Minor
Found in src/hooks/useDynamicInput.ts - About 1 hr to fix

There are no issues that match your filters.

Category
Status