Skip to content

Commit

Permalink
fix: Fix typing for site user role selector (#226)
Browse files Browse the repository at this point in the history
  • Loading branch information
david-code authored Dec 13, 2023
1 parent 1ddc4e6 commit d31f266
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/selectors.ts
Original file line number Diff line number Diff line change
Expand Up @@ -123,7 +123,7 @@ const selectSiteId = (_state: any, siteId: string) => siteId;

export const selectUserRoleSite = createSelector(
[selectSites, selectProjects, selectSiteId, selectCurrentUserID],
(sites, projects, siteId, userId) => {
(sites, projects, siteId, userId): SiteUserRole | null => {
const site = sites[siteId];
if (!site) {
return null;
Expand Down

0 comments on commit d31f266

Please sign in to comment.