mirror of
https://github.com/danswer-ai/danswer.git
synced 2025-04-01 00:18:18 +02:00
Very minor update to divider logic (#2287)
This commit is contained in:
parent
580848cf8c
commit
634de83d72
@ -58,7 +58,6 @@ export function UserDropdown({
|
||||
if (!combinedSettings) {
|
||||
return null;
|
||||
}
|
||||
const settings = combinedSettings.settings;
|
||||
|
||||
const handleLogout = () => {
|
||||
logout().then((isSuccess) => {
|
||||
@ -143,9 +142,10 @@ export function UserDropdown({
|
||||
)
|
||||
)}
|
||||
|
||||
{(showAdminPanel || showCuratorPanel) && (
|
||||
{showLogout && (showCuratorPanel || showAdminPanel) && (
|
||||
<div className="border-t border-border my-1" />
|
||||
)}
|
||||
|
||||
{showLogout && (
|
||||
<DropdownOption
|
||||
onClick={handleLogout}
|
||||
|
Loading…
x
Reference in New Issue
Block a user