AccountPanelServerProfile: Format

This commit is contained in:
thororen1234 2025-11-30 13:10:49 -05:00
parent 475f8af89d
commit 9795023906
No known key found for this signature in database

View file

@ -39,8 +39,10 @@ const AccountPanelContextMenu = ErrorBoundary.wrap(() => {
label={prioritizeServerProfile ? "View Account Profile" : "View Server Profile"}
disabled={getCurrentChannel()?.getGuildId() == null}
action={e => {
const user = UserStore.getCurrentUser();
if (isPluginEnabled(alwaysExpandProfiles.name)) return alwaysExpandProfiles.openUserModal(user);
if (isPluginEnabled(alwaysExpandProfiles.name)) {
const user = UserStore.getCurrentUser();
return alwaysExpandProfiles.openUserModal(user);
}
openAlternatePopout = true;
accountPanelRef.current?.click();
}}