From abb7400f7917c89694a63ae5533ebf69de9f94dc Mon Sep 17 00:00:00 2001 From: Alex Beaman Date: Tue, 21 Jan 2025 14:56:38 +0200 Subject: [PATCH] Merge pull request #55521 from nkdengineer/fix/53764 [CP Staging] remove toString method (cherry picked from commit 107a6fad84e21a415b40d30d010d42da05a2bc8d) (CP triggered by Beamanator) --- src/pages/home/HeaderView.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/home/HeaderView.tsx b/src/pages/home/HeaderView.tsx index 55d29077141d..02dffe751beb 100644 --- a/src/pages/home/HeaderView.tsx +++ b/src/pages/home/HeaderView.tsx @@ -150,7 +150,7 @@ function HeaderView({report, parentReportAction, onNavigationMenuButtonClicked, return true; }; - const shouldShowGuideBooking = !!account && report?.reportID.toString() === account?.adminsRoomReportID?.toString() && !!account?.guideDetails?.calendarLink; + const shouldShowGuideBooking = !!account && report?.reportID === account?.adminsRoomReportID && !!account?.guideDetails?.calendarLink; const join = checkIfActionIsAllowed(() => joinRoom(report));