We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 443a6a4 commit 058158bCopy full SHA for 058158b
src/components/floating-profile/FloatingProfile.tsx
@@ -523,20 +523,9 @@ const DesktopProfileFlyout = (props: {
523
const ProfileArea = () => {
524
const memberRoles = serverMembers.roles(member()!, true) || [];
525
526
- const showRoles = () => {
527
- if (!server()) return false;
528
- if (memberRoles.length === 0) return false;
529
- const hasPerm = serverMembers.hasPermission(
530
- accountMember()!,
531
- ROLE_PERMISSIONS.MANAGE_ROLES
532
- );
533
- if (!hasPerm) return false;
534
- return true;
535
- };
536
-
537
return (
538
<>
539
- <Show when={showRoles()}>
+ <Show when={server()}>
540
<div class={styles.section}>
541
<FlyoutTitle
542
primaryColor={colors()?.primary || undefined}
0 commit comments