src/app/components/Byline/utilities/bylineExtractor/index.tsx

Summary

Maintainability
A
1 hr
Test Coverage
A
100%

Function bylineExtractor has 33 lines of code (exceeds 25 allowed). Consider refactoring.
Open

const bylineExtractor = (blocks: OptimoBylineContributorBlock[]) => {
  const bylineBlocks = blocks?.[0]?.model?.blocks || [];

  const authorBlock = bylineBlocks.find(block => block.type === 'name');
  const jobRoleBlock = bylineBlocks.find(block => block.type === 'role');
Severity: Minor
Found in src/app/components/Byline/utilities/bylineExtractor/index.tsx - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status