graycoreio/daffodil

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

Summary

Maintainability
A
1 hr
Test Coverage

Function cartCouponReducer has 48 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export function cartCouponReducer<T extends DaffCart = DaffCart>(
  state = daffCartReducerInitialState,
  action: ActionTypes<T>,
): DaffCartReducerState<T> {
  switch (action.type) {
Severity: Minor
Found in libs/cart/state/src/reducers/cart-coupon/cart-coupon.reducer.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status