graycoreio/daffodil

View on GitHub
libs/cart/state/src/reducers/cart/cart.reducer.ts

Summary

Maintainability
A
2 hrs
Test Coverage

Function cartReducer has 54 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function cartReducer<T extends DaffCart = DaffCart>(
  state = daffCartReducerInitialState,
  action: ActionTypes<T>,
): DaffCartReducerState<T> {
  switch (action.type) {
Severity: Major
Found in libs/cart/state/src/reducers/cart/cart.reducer.ts - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status