const getVisibleExpenses = ( expenses, {text, sortBy, startDate, endDate }) => { return expenses.filter((expense) => { const startDateMatch = typeof startDate