removed unnecessary code

This commit is contained in:
Akinwale Ariwodola 2017-07-27 10:40:43 +01:00
parent 2b24176335
commit 3c93d6553a

View file

@ -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 });