gil--/gatsby-starter-shopifypwa

View on GitHub
src/templates/product.js

Summary

Maintainability
A
2 hrs
Test Coverage

Function render has 66 lines of code (exceeds 25 allowed). Consider refactoring.
Open

    render() {
        const product = this.props.data.shopify.shop.productByHandle

        let variant = this.state.selectedVariant || product.variants.edges[0].node
        let variantImage = this.state.selectedVariantImage || product.images.edges[0].node.src
Severity: Major
Found in src/templates/product.js - About 2 hrs to fix

    There are no issues that match your filters.

    Category
    Status