Skip to content

Commit d45d272

Browse files
committed
claude suggestions
1 parent 1d64cdb commit d45d272

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

ui/src/components/ui/profile-menu.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -154,7 +154,7 @@ function ProfileMenuContent({
154154
</a>
155155
</ContentText>
156156
</DropdownMenuItem>
157-
<DropdownMenuItem onClick={onSwitchTenant}>
157+
{onSwitchTenant && <DropdownMenuItem onClick={onSwitchTenant}>
158158
<SvgIcon iconName="refresh" className="adu:mr-2" />
159159
<ContentText
160160
className="adu:text-foreground-bold"
@@ -163,7 +163,7 @@ function ProfileMenuContent({
163163
Switch Tenant
164164
</ContentText>
165165
<SvgIcon iconName="caret-right" className="adu:ml-auto" />
166-
</DropdownMenuItem>
166+
</DropdownMenuItem>}
167167
<DropdownMenuSeparator />
168168
</>
169169
) : (

0 commit comments

Comments
 (0)