diff --git a/assets/js/amp-editor-blocks.js b/assets/js/amp-editor-blocks.js index 56824a489d4..fffb7720f86 100644 --- a/assets/js/amp-editor-blocks.js +++ b/assets/js/amp-editor-blocks.js @@ -507,7 +507,7 @@ var ampEditorBlocks = ( function() { // eslint-disable-line no-unused-vars props.setAttributes( { height: nextHeight } ); } } ), - maxFont > height && el( + parseInt( maxFont ) > parseInt( height ) && el( wp.components.Notice, { status: 'error', @@ -530,7 +530,7 @@ var ampEditorBlocks = ( function() { // eslint-disable-line no-unused-vars } } ) ), - minFont > maxFont && el( + parseInt( minFont ) > parseInt( maxFont ) && el( wp.components.Notice, { status: 'error', diff --git a/blocks/amp-story/block-navigation.js b/blocks/amp-story/block-navigation.js index 842f2e3fd9e..1886fe875d8 100644 --- a/blocks/amp-story/block-navigation.js +++ b/blocks/amp-story/block-navigation.js @@ -1,8 +1,3 @@ -/** - * External dependencies - */ -import { map, noop } from 'lodash'; - /** * WordPress dependencies */ @@ -26,7 +21,7 @@ function BlockNavigationList( { */ /* eslint-disable jsx-a11y/no-redundant-roles */