Skip to content

Commit

Permalink
add enabled flag to permNames hook
Browse files Browse the repository at this point in the history
  • Loading branch information
aidynoJ committed Jun 13, 2024
1 parent d8755e6 commit db0c8b7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/hooks/useUserTenantPermissionNames.js
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ const useUserTenantPermissionNames = (
).json();
},
{
enabled: Boolean(user?.id && tenantId),
enabled: Boolean(user?.id && tenantId) && !stripes.hasInterface('roles'),
keepPreviousData: true,
...options,
},
Expand Down

0 comments on commit db0c8b7

Please sign in to comment.