middlewarehq / unwrapped

Spotify Wrapped for developers.
https://www.middlewarehq.com/unwrapped
MIT License
64 stars 4 forks source link

Fix next and prev arrow btn logic #113

Closed shivam-bit closed 11 months ago

shivam-bit commented 11 months ago

This pull request fixes the logic for the next and previous arrow buttons in the SwiperCarousel component. Previously, the next arrow button was always displayed, even on the last slide, and the previous arrow button was not displayed on the first slide. This PR updates the logic to only display the next arrow button if it is not the last slide, and to display the previous arrow button if it is not the first slide.