graycoreio/daffodil

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

Summary

Maintainability
A
3 hrs
Test Coverage

Function cartItemReducer has 79 lines of code (exceeds 25 allowed). Consider refactoring.
Open

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

    There are no issues that match your filters.

    Category
    Status