Skip to content

Commit

Permalink
Fix anonymous user function call
Browse files Browse the repository at this point in the history
  • Loading branch information
puneetlath committed Jun 21, 2023
1 parent 795dc10 commit d869710
Showing 1 changed file with 9 additions and 10 deletions.
19 changes: 9 additions & 10 deletions src/pages/ProfilePage.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,16 +201,15 @@ function ProfilePage(props) {
) : null}
{shouldShowLocalTime && <AutoUpdateTime timezone={timezone} />}
</View>
{!isCurrentUser &&
!Session.isAnonymousUser(
<MenuItem
title={`${props.translate('common.message')}${displayName}`}
icon={Expensicons.ChatBubble}
onPress={() => Report.navigateToAndOpenReportWithAccountIDs([accountID])}
wrapperStyle={styles.breakAll}
shouldShowRightIcon
/>,
)}
{!isCurrentUser && !Session.isAnonymousUser() && (
<MenuItem
title={`${props.translate('common.message')}${displayName}`}
icon={Expensicons.ChatBubble}
onPress={() => Report.navigateToAndOpenReportWithAccountIDs([accountID])}
wrapperStyle={styles.breakAll}
shouldShowRightIcon
/>
)}
</ScrollView>
)}
{!hasMinimumDetails && isLoading && <FullScreenLoadingIndicator style={styles.flex1} />}
Expand Down

0 comments on commit d869710

Please sign in to comment.