refactor mylistings and my rentals
This commit is contained in:
@@ -36,7 +36,7 @@ const EarningsDashboard: React.FC = () => {
|
||||
const fetchEarningsData = async () => {
|
||||
try {
|
||||
// Get completed rentals where user is the owner
|
||||
const response = await rentalAPI.getMyListings();
|
||||
const response = await rentalAPI.getListings();
|
||||
const rentals = response.data || [];
|
||||
|
||||
// Filter for completed rentals with earnings data
|
||||
|
||||
Reference in New Issue
Block a user