Skip to content

Commit

Permalink
fix: Fix typing for site user role selector
Browse files Browse the repository at this point in the history
  • Loading branch information
David Code Howard committed Dec 8, 2023
1 parent ad73879 commit e97bb4b
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 e97bb4b

Please sign in to comment.