Skip to content

Commit

Permalink
Merge pull request #35202 from DylanDylann/fix/34820-join-button-appe…
Browse files Browse the repository at this point in the history
…ar-when-leave-thread

Fix/34820: Hide join button once leaving
  • Loading branch information
neil-marcellini authored Jan 29, 2024
2 parents 241c686 + 76d4e47 commit d1f2e7c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/pages/home/HeaderView.js
Original file line number Diff line number Diff line change
Expand Up @@ -217,7 +217,7 @@ function HeaderView(props) {
const shouldShowBorderBottom = !isTaskReport || !isSmallScreenWidth;
const shouldDisableDetailPage = ReportUtils.shouldDisableDetailPage(props.report);

const isLoading = !props.report || !title;
const isLoading = !props.report || !props.report.reportID || !title;

return (
<View
Expand Down Expand Up @@ -321,7 +321,7 @@ function HeaderView(props) {
)}
</View>
</View>
{canJoin && isSmallScreenWidth && <View style={[styles.ph5, styles.pb2]}>{joinButton}</View>}
{!isLoading && canJoin && isSmallScreenWidth && <View style={[styles.ph5, styles.pb2]}>{joinButton}</View>}
</View>
);
}
Expand Down

0 comments on commit d1f2e7c

Please sign in to comment.