badge when owner gets pending rental request

This commit is contained in:
jackiettran
2025-10-31 12:18:40 -04:00
parent 71ce2c63fb
commit 99aa0b3bdc
5 changed files with 95 additions and 3 deletions

View File

@@ -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);