removed unnecessary code
This commit is contained in:
parent
2b24176335
commit
3c93d6553a
1 changed files with 0 additions and 4 deletions
|
@ -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 });
|
||||
|
|
Loading…
Reference in a new issue