calluswhatyouwant/musicritic

Toptracks doesn't begin from the top

thayannevls opened this issue · 2 comments

Describe the bug
Currently, Your top tracks starts at the 47 instead of 1

To Reproduce
Steps to reproduce the behavior:

  1. Go to /home
  2. See the Top Tracks

Expected behavior
Show Top tracks from the 1 to the 50.

Screenshots

Screen Shot 2019-04-19 at 22 30 02

I tried to use this props but something strange it's occurring, 0 begins at the 47 of the rank for some reason.

Maybe the key props it's not assuming the expected value?

I used initialSlide: 0(this is default anyway) but the slider is starting at the -4 as you can see in the PrevArrow Component.

Screen Shot 2019-04-20 at 01 03 38

It's not a bug with the Slider component because I made some examples to test and it worked just fine.

Maybe it's something with the map and the index made here:

const slides = tracks.map((track, index) => slide(index, track));