refactor mylistings and my rentals
This commit is contained in:
@@ -173,7 +173,7 @@ const EditItem: React.FC = () => {
|
||||
|
||||
const fetchAcceptedRentals = async () => {
|
||||
try {
|
||||
const response = await rentalAPI.getMyListings();
|
||||
const response = await rentalAPI.getListings();
|
||||
const rentals: Rental[] = response.data;
|
||||
// Filter for accepted rentals for this specific item
|
||||
const itemRentals = rentals.filter(
|
||||
|
||||
Reference in New Issue
Block a user