Skip to content

Commit

Permalink
Merge pull request #35563 from Expensify/rodrigo-fix-pin-unresponsive
Browse files Browse the repository at this point in the history
[CP Staging] Fixing some buttons being unresponsive in ReportScreen

(cherry picked from commit 31948fb)
  • Loading branch information
rlinoz authored and OSBotify committed Feb 1, 2024
1 parent 7d3326e commit 55b106d
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -200,6 +200,8 @@ function ReportScreen({
iouReportID: reportProp.iouReportID,
isOwnPolicyExpenseChat: reportProp.isOwnPolicyExpenseChat,
notificationPreference: reportProp.notificationPreference,
isPinned: reportProp.isPinned,
chatReportID: reportProp.chatReportID,
}),
[
reportProp.lastReadTime,
Expand Down Expand Up @@ -230,6 +232,8 @@ function ReportScreen({
reportProp.iouReportID,
reportProp.isOwnPolicyExpenseChat,
reportProp.notificationPreference,
reportProp.isPinned,
reportProp.chatReportID,
],
);

Expand Down Expand Up @@ -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,
),
);

0 comments on commit 55b106d

Please sign in to comment.