oysterprotocol/webinterface

View on GitHub
src/redux/reducers/upload-history-reducer.tsx

Summary

Maintainability
A
1 hr
Test Coverage

Function reducer has 38 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const reducer = (state = initState, action) => {
  switch (action.type) {
    case uploadActions.PAYMENT_CONFIRMED: {
      const { filename, handle, numberOfChunks } = action.payload;
      const now = Date.now();
Severity: Minor
Found in src/redux/reducers/upload-history-reducer.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status