badge when owner gets pending rental request
This commit is contained in:
1 parent
71ce2c63fb
commit
99aa0b3bdc
5 files changed
+95
-3
No files matched your search
@@ -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