packages/experiments/src/components/ExperimentsDebugger.tsx
Function ExperimentsDebugger
has 49 lines of code (exceeds 25 allowed). Consider refactoring. Open
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)