From 3c93d6553add2a686bbe47c489d2bffdcac6347e Mon Sep 17 00:00:00 2001 From: Akinwale Ariwodola Date: Thu, 27 Jul 2017 10:40:43 +0100 Subject: [PATCH] removed unnecessary code --- ui/js/page/discover/view.jsx | 4 ---- 1 file changed, 4 deletions(-) diff --git a/ui/js/page/discover/view.jsx b/ui/js/page/discover/view.jsx index 16e41fdb6..3a4e2f6c7 100644 --- a/ui/js/page/discover/view.jsx +++ b/ui/js/page/discover/view.jsx @@ -80,10 +80,6 @@ class FeaturedCategory extends React.PureComponent { } } - if (lastVisibleIdx > cards.length - 1) { - lastVisibleIdx = cards.length - 1; - } - this.setState({ canScrollPrevious: true }); if (lastVisibleIdx === cards.length - 1) { this.setState({ canScrollNext: false });