“Error ‘Something Went Wrong’ When Selecting Any Value from Category Dropdown in Dashboard > Monthly Expense Card”
This commit is contained in:
parent
f69faccd62
commit
63392ebde8
@ -35,7 +35,7 @@ const ExpenseByProject = () => {
|
|||||||
|
|
||||||
const getSelectedTypeName = () => {
|
const getSelectedTypeName = () => {
|
||||||
if (!selectedType) return "All Types";
|
if (!selectedType) return "All Types";
|
||||||
const found = ExpenseTypes.find((t) => t.id === selectedType);
|
const found = ExpenseCategories.find((t) => t.id === selectedType);
|
||||||
return found ? found.name : "All Types";
|
return found ? found.name : "All Types";
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user