From cf3d3eb0f009ae6d3bdb5c62200f36472df81cd7 Mon Sep 17 00:00:00 2001 From: Robert Elliott Date: Tue, 23 Oct 2018 12:20:13 +0200 Subject: [PATCH] remove last tick in an uneven series --- plugins/woocommerce-admin/client/components/chart/utils.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/plugins/woocommerce-admin/client/components/chart/utils.js b/plugins/woocommerce-admin/client/components/chart/utils.js index f8636824233..0d40f08989c 100644 --- a/plugins/woocommerce-admin/client/components/chart/utils.js +++ b/plugins/woocommerce-admin/client/components/chart/utils.js @@ -268,9 +268,6 @@ const getXTicksFromIncrementFactor = ( uniqueDates, incrementFactor ) => { if ( ticks[ 0 ] !== uniqueDates[ 0 ] ) { ticks.unshift( uniqueDates[ 0 ] ); } - if ( ticks[ ticks.length - 1 ] !== uniqueDates[ uniqueDates.length - 1 ] ) { - ticks.push( uniqueDates[ uniqueDates.length - 1 ] ); - } return ticks; };