Skip to content

Commit

Permalink
Merge pull request #22458 from Expensify/jack-fixtaskcrash
Browse files Browse the repository at this point in the history
Fix crash for tasks on mobile
  • Loading branch information
jasperhuangg authored Jul 7, 2023
2 parents 3475812 + 8b3c9ca commit 67e07f9
Showing 1 changed file with 8 additions and 10 deletions.
18 changes: 8 additions & 10 deletions src/pages/home/ReportScreen.js
Original file line number Diff line number Diff line change
Expand Up @@ -292,17 +292,15 @@ class ReportScreen extends React.Component {
/>
)}

{ReportUtils.isTaskReport(this.props.report) &&
this.props.isSmallScreenWidth &&
ReportUtils.isOpenTaskReport(this.props.report)(
<View style={[styles.borderBottom]}>
<View style={[styles.appBG, styles.pl0]}>
<View style={[styles.ph5, styles.pb3]}>
<TaskHeaderActionButton report={this.props.report} />
</View>
{ReportUtils.isTaskReport(this.props.report) && this.props.isSmallScreenWidth && ReportUtils.isOpenTaskReport(this.props.report) && (
<View style={[styles.borderBottom]}>
<View style={[styles.appBG, styles.pl0]}>
<View style={[styles.ph5, styles.pb3]}>
<TaskHeaderActionButton report={this.props.report} />
</View>
</View>,
)}
</View>
</View>
)}
</OfflineWithFeedback>
{Boolean(this.props.accountManagerReportID) && ReportUtils.isConciergeChatReport(this.props.report) && this.state.isBannerVisible && (
<Banner
Expand Down

0 comments on commit 67e07f9

Please sign in to comment.