From 1e4d403860ac54f9c71aeab0e58ac1c47186c104 Mon Sep 17 00:00:00 2001 From: Amal Nazeem Date: Wed, 9 Mar 2022 11:56:23 -0500 Subject: [PATCH] Reapply RoomHeaderAvatars Logic to fix regression --- src/pages/ReportDetailsPage.js | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/pages/ReportDetailsPage.js b/src/pages/ReportDetailsPage.js index 08a19ba59d1b..10dc4ea4f738 100644 --- a/src/pages/ReportDetailsPage.js +++ b/src/pages/ReportDetailsPage.js @@ -5,7 +5,7 @@ import Str from 'expensify-common/lib/str'; import _ from 'underscore'; import {View, ScrollView} from 'react-native'; import lodashGet from 'lodash/get'; -import Avatar from '../components/Avatar'; +import RoomHeaderAvatars from '../components/RoomHeaderAvatars'; import compose from '../libs/compose'; import withLocalize, {withLocalizePropTypes} from '../components/withLocalize'; import ONYXKEYS from '../ONYXKEYS'; @@ -103,6 +103,7 @@ class ReportDetailsPage extends Component { } render() { + const isPolicyExpenseChat = ReportUtils.isPolicyExpenseChat(this.props.report); const isChatRoom = ReportUtils.isChatRoom(this.props.report); const chatRoomSubtitle = ReportUtils.getChatRoomSubtitle(this.props.report, this.props.policies); const participants = lodashGet(this.props.report, 'participants', []); @@ -131,13 +132,12 @@ class ReportDetailsPage extends Component { - + + +