diff --git a/src/components/SubscriptAvatar.tsx b/src/components/SubscriptAvatar.tsx index 4e23befcbb15..a74e8fe958e3 100644 --- a/src/components/SubscriptAvatar.tsx +++ b/src/components/SubscriptAvatar.tsx @@ -75,6 +75,9 @@ function SubscriptAvatar({ shouldRender={showTooltip} accountID={Number(mainAvatar?.id ?? -1)} icon={mainAvatar} + fallbackUserDetails={{ + displayName: mainAvatar?.name, + }} > ({ @@ -446,20 +446,22 @@ function WorkspaceInitialPage({policyDraft, policy: policyProp, route}: Workspac ))} - - {translate('workspace.common.submitExpense')} - - Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(currentUserPolicyExpenseChat?.reportID ?? '-1'))} - shouldShowRightIcon - wrapperStyle={[styles.br2, styles.pl2, styles.pr0, styles.pv3, styles.mt1, styles.alignItemsCenter]} - shouldShowSubscriptAvatar - /> - - + {isPolicyExpenseChatEnabled && ( + + {translate('workspace.common.submitExpense')} + + Navigation.navigate(ROUTES.REPORT_WITH_ID.getRoute(currentUserPolicyExpenseChat?.reportID ?? '-1'))} + shouldShowRightIcon + wrapperStyle={[styles.br2, styles.pl2, styles.pr0, styles.pv3, styles.mt1, styles.alignItemsCenter]} + shouldShowSubscriptAvatar + /> + + + )}