I have my project which is almost complete. But the problem is a small bug in my drop down box with is dynamic, which means whenever a new expense is added to the list, the corresponding year gets added to the options tag within select tag in FilterExpense.jsx file. The issue goes like even if a particular year is present in the drop down list, the same year gets added again and again all the time when an expense of the same year is added to the list.
Here is the picture showing two 2021 while the program is expected to show it only once. How to fix this bug?
THANKS IN ADVANCE!!!
