Skip to content

Commit

Permalink
fix available roles filter, fixes ST-425
Browse files Browse the repository at this point in the history
  • Loading branch information
Onatcer committed Sep 12, 2024
1 parent 85315fc commit 9189910
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion resources/js/utils/roles.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,6 @@ import type { Role } from '@/types/jetstream';

export function filterRoles(roles: Role[]) {
return roles.filter(function (role) {
return role.key !== 'placeholder' || role.name !== 'owner';
return role.key !== 'placeholder' && role.key !== 'owner';
});
}

0 comments on commit 9189910

Please sign in to comment.