apjames93/mui-storyblok

View on GitHub
src/lib/utils/Storyblok.js

Summary

Maintainability
A
1 hr
Test Coverage
F
26%

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

export const setMetadata = (res) => {
  if (res.data.story.content.seo) {
    const metadataTag = checkForMetaTag('metadataTitle');
    const metaOgTitle = checkForMetaTag('metaOgTitle', 'og:title');
    const metaOgImage = checkForMetaTag('metaOgImage', 'og:image');
Severity: Minor
Found in src/lib/utils/Storyblok.js - About 1 hr to fix

    There are no issues that match your filters.

    Category
    Status