From ef11740f9f322e0b61fe60c1f945f8f7652f6692 Mon Sep 17 00:00:00 2001 From: Gabriele Dal Cengio Date: Tue, 4 Jun 2024 15:18:50 -0700 Subject: [PATCH] Change description comparison to use id --- src/components/assignRolesAndDistrictsPage/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/assignRolesAndDistrictsPage/index.js b/src/components/assignRolesAndDistrictsPage/index.js index 955354e5..14722052 100644 --- a/src/components/assignRolesAndDistrictsPage/index.js +++ b/src/components/assignRolesAndDistrictsPage/index.js @@ -291,7 +291,7 @@ const AssignRolesAndDistrictsPage = () => { {assigningError && {assigningError}} { - (role?.description === 'Range Agreement Holder' && selectedDistricts?.length > 0)&& + (role?.id === 4 && selectedDistricts?.length > 0)&& Range Agreement Holders cannot be assigned districts. }