Anujcodecraft / Anujcodecraft/notes-online

## 🐞 Bug: "Next" Button Disabled on PYQs Page After Switching Exam Type

Aperta
#22 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub
bug good first issue help wanted ReactJs
Lingua principale
JavaScript
Stelle
7
Fork
7
Metriche di merge delle PR
Nessuna PR unita negli ultimi 30g

Descrizione

### 📋 Description

On the **PYQs** page:

- When the user selects an exam type like `Mini`, the pagination updates correctly.
- However, when the user **switches back to "All Types"**, even though there are multiple questions (e.g., total of 8), the **"Next"** button becomes **disabled**.

---

### 🔁 Steps to Reproduce

1. Visit the main website [🌐 Live Demo](https://manitstudyportal.netlify.app/) and navigate to the **PYQs(click Browse Pyqs)** page.
2. Select **any specific exam type** (e.g., "Mini").
3. Then switch back to **"All Types"**.
4. Observe that the **"Next"** button is now **disabled**, even though there are enough items for pagination.

---

### ✅ Expected Behavior

- When switching back to **"All Types"**, the **"Next"** button should remain **enabled** if total items exceed the current page limit.
- Pagination should work just like it did on first page load.

---

Guida per i contributori

Nessuna guida per i contributori indicizzata per questo repository

Valutazione

Questa issue non è ancora stata valutata.

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.