Skip to content

Commit

Permalink
roles vs userRoles on response
Browse files Browse the repository at this point in the history
  • Loading branch information
aidynoJ committed Nov 11, 2024
1 parent c7535fe commit 6083e50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/hooks/useUserTenantRoles.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function useUserTenantRoles({ userId, tenantId }, options) {
isFetching,
isFetched,
isLoading,
userPermissions: data?.roles || INITIAL_DATA,
userPermissions: data?.userRoles || INITIAL_DATA,
totalRecords: data?.totalRecords || 0
};
}
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useUserTenantRoles.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ const wrapper = ({ children }) => (

const response = {
data: {
roles: ['role1', 'role2'],
userRoles: ['role1', 'role2'],
totalRecords: 2,
}
};
Expand Down

0 comments on commit 6083e50

Please sign in to comment.