src/app/components/Byline/utilities/bylineExtractor/index.tsx
Function bylineExtractor
has 33 lines of code (exceeds 25 allowed). Consider refactoring. Open
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');