NTP-28813| pause changes| varshitha (#1348)
This commit is contained in:
@@ -16,7 +16,7 @@ const CasesCustomerName = (props: { data: AllCasesSummary }) => {
|
||||
const isSnoozed = props?.data?.status === CaseStatus.ON_HOLD;
|
||||
const userRole = useSelector((state: RootState) => state.common.userData?.roles);
|
||||
const hasVisibilityRole = userRole?.some(role => PAUSE_CASE_LH_VISIBILITY_ROLES.includes(role));
|
||||
const isRiskSegmentationVisibleOnPause = isSnoozed && !hasVisibilityRole;
|
||||
const isRiskSegmentationVisibleOnPause = !(isSnoozed && !hasVisibilityRole);
|
||||
|
||||
const barColor = isRiskSegmentationVisibleOnPause ? getRiskBarColor(riskSegment || '') : '';
|
||||
|
||||
|
||||
Reference in New Issue
Block a user