badge when owner gets pending rental request
This commit is contained in:
@@ -164,6 +164,9 @@ const MyListings: React.FC = () => {
|
||||
|
||||
fetchOwnerRentals();
|
||||
fetchAvailableChecks(); // Refresh available checks after rental confirmation
|
||||
|
||||
// Notify Navbar to update pending count
|
||||
window.dispatchEvent(new CustomEvent("rentalStatusChanged"));
|
||||
} catch (err: any) {
|
||||
console.error("Failed to accept rental request:", err);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user