Refactored if condition in toggleIndex and anchored title to top.
Apart from what is mentioned in the main ticket you are going to close with this MR, tell us what you have done to achieve this goal.
Does the result of the MR comply to our "definition of done"?
Unit tests passed
Acceptance criteria met
Functional tests passed
Non-Functional requirements met
Product Owner accepts the User Story
I added a statement to the CHANGELOG.
I updated the README (if applicable)
I provided my functions with appropriate documentation