Skip to content

Commit

Permalink
Change description comparison to use id
Browse files Browse the repository at this point in the history
  • Loading branch information
gdalcengio committed Jun 4, 2024
1 parent 5a7ec1d commit ef11740
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/assignRolesAndDistrictsPage/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ const AssignRolesAndDistrictsPage = () => {

{assigningError && <Typography color="error">{assigningError}</Typography>}
{
(role?.description === 'Range Agreement Holder' && selectedDistricts?.length > 0)&&
(role?.id === 4 && selectedDistricts?.length > 0)&&
<Typography color="error">Range Agreement Holders cannot be assigned districts.</Typography>
}

Expand Down

0 comments on commit ef11740

Please sign in to comment.