polkadot-js/apps

View on GitHub
packages/page-bounties/src/helpers/getBountyStatus.ts

Summary

Maintainability
A
1 hr
Test Coverage

Function getBountyStatus has 32 lines of code (exceeds 25 allowed). Consider refactoring.
Open

export const getBountyStatus = (status: BountyStatus): BountyStatusType => {
  const statusAsString = status.type as StatusName;

  let result: BountyStatusType = {
    beneficiary: undefined,
Severity: Minor
Found in packages/page-bounties/src/helpers/getBountyStatus.ts - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status