From 55b106ddadf4cb3bdda3e298a9d0eb8f39cde007 Mon Sep 17 00:00:00 2001 From: Rodrigo Lino da Costa <5201282+rlinoz@users.noreply.github.com> Date: Thu, 1 Feb 2024 16:56:35 -0300 Subject: [PATCH] Merge pull request #35563 from Expensify/rodrigo-fix-pin-unresponsive [CP Staging] Fixing some buttons being unresponsive in ReportScreen (cherry picked from commit 31948fb7dc827249f546c6a99f3570c38259ed55) --- src/pages/home/ReportScreen.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/src/pages/home/ReportScreen.js b/src/pages/home/ReportScreen.js index f28e418865ff..da1ad3426c2f 100644 --- a/src/pages/home/ReportScreen.js +++ b/src/pages/home/ReportScreen.js @@ -200,6 +200,8 @@ function ReportScreen({ iouReportID: reportProp.iouReportID, isOwnPolicyExpenseChat: reportProp.isOwnPolicyExpenseChat, notificationPreference: reportProp.notificationPreference, + isPinned: reportProp.isPinned, + chatReportID: reportProp.chatReportID, }), [ reportProp.lastReadTime, @@ -230,6 +232,8 @@ function ReportScreen({ reportProp.iouReportID, reportProp.isOwnPolicyExpenseChat, reportProp.notificationPreference, + reportProp.isPinned, + reportProp.chatReportID, ], ); @@ -658,6 +662,9 @@ export default compose( prevProps.report.isOptimisticReport === nextProps.report.isOptimisticReport && prevProps.report.statusNum === nextProps.report.statusNum && _.isEqual(prevProps.report.pendingFields, nextProps.report.pendingFields) && - prevProps.currentReportID === nextProps.currentReportID, + prevProps.currentReportID === nextProps.currentReportID && + prevProps.report.notificationPreference === nextProps.report.notificationPreference && + prevProps.report.isPinned === nextProps.report.isPinned && + prevProps.report.chatReportID === nextProps.report.chatReportID, ), );