Skip to content

Commit 5640e87

Browse files
committed
Render tooltip only when user can switch accounts
1 parent 630b78a commit 5640e87

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/components/AccountSwitcher.tsx

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -131,6 +131,7 @@ function AccountSwitcher() {
131131
text={translate('delegate.copilotAccess')}
132132
shiftVertical={8}
133133
anchorAlignment={{horizontal: CONST.MODAL.ANCHOR_ORIGIN_HORIZONTAL.LEFT, vertical: CONST.MODAL.ANCHOR_ORIGIN_VERTICAL.BOTTOM}}
134+
shouldRender={canSwitchAccounts}
134135
>
135136
<PressableWithFeedback
136137
accessible

0 commit comments

Comments
 (0)