xylabs/sdk-react

View on GitHub
packages/experiments/src/components/ExperimentsDebugger.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function ExperimentsDebugger has 49 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const ExperimentsDebugger: React.FC = ({ ...props }) => {
  const [experiments] = useLocalStorage<ExperimentsData>(ExperimentsLocalStorageKey, {})
  const [outcomes, setOutcomes] = useLocalStorage<OutcomesData>(OutcomesLocalStorageKey, {})

  const sumUpVariants = (items: VariantData[]) => items.reduce((acc, curr) => acc + curr.weight, 0)
Severity: Minor
Found in packages/experiments/src/components/ExperimentsDebugger.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status