diff --git a/src/components/Dashboard/ExpenseByProject.jsx b/src/components/Dashboard/ExpenseByProject.jsx index d59c9522..7c0e829f 100644 --- a/src/components/Dashboard/ExpenseByProject.jsx +++ b/src/components/Dashboard/ExpenseByProject.jsx @@ -35,7 +35,7 @@ const ExpenseByProject = () => { const getSelectedTypeName = () => { 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"; }; @@ -69,8 +69,8 @@ const ExpenseByProject = () => { const ExpenseCategoryType = [ - {id:1,category:"Category",label:"Category"}, - {id:2,category:"Project",label:"Project"} + { id: 1, category: "Category", label: "Category" }, + { id: 2, category: "Project", label: "Project" } ] return ( @@ -91,19 +91,19 @@ const ExpenseByProject = () => { > {viewMode} -