Very minor update to divider logic (#2287)

This commit is contained in:
pablodanswer 2024-08-31 14:40:15 -07:00 committed by GitHub
parent 580848cf8c
commit 634de83d72
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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}