Skip to content

Commit 89da5f4

Browse files
committed
Show all expenses instead of limiting to 10
Removed the slice operation that limited the displayed expenses to 10 items. Now, all expenses from the props are shown in the list.
1 parent 07bd6fd commit 89da5f4

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/components/ExpenseList.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -155,8 +155,8 @@ const formatAmount = (amount: number) => {
155155
}
156156
157157
const sortedExpenses = computed(() =>
158-
// Data is already sorted from database, just limit to 10 items
159-
props.expenses.slice(0, 10)
158+
// Data is already sorted from database
159+
props.expenses
160160
)
161161
162162
// Format date for display

0 commit comments

Comments
 (0)