diff --git a/packages/gatsby-source-contentful/src/extend-node-type.js b/packages/gatsby-source-contentful/src/extend-node-type.js index a5e4dcf606fb8..a8d02189f4a2c 100644 --- a/packages/gatsby-source-contentful/src/extend-node-type.js +++ b/packages/gatsby-source-contentful/src/extend-node-type.js @@ -133,8 +133,8 @@ const resolveResponsiveResolution = (image, options) => { desiredAspectRatio = options.width / options.height } - // If the user selected a height (so cropping) and options for focus - // and fit aren't set, we'll set our defaults + // If the user selected a height (so cropping) and fit option + // is not set, we'll set our defaults if (options.height) { if (!options.resizingBehavior) { options.resizingBehavior = `fill` @@ -294,8 +294,8 @@ const resolveResize = (image, options) => getBase64ImageAndBasicMeasurements(image, options).then( ({ contentType, base64Str, width, height, aspectRatio }) => { - // If the user selected a height (so cropping) and options for focus - // and fit aren't set, we'll set our defaults + // If the user selected a height (so cropping) and fit option + // is not set, we'll set our defaults if (options.height) { if (!options.resizingBehavior) { options.resizingBehavior = `fill`