Skip to content

Commit

Permalink
Update TagCaseState.tsx
Browse files Browse the repository at this point in the history
  • Loading branch information
unakb committed Jan 6, 2025
1 parent d06f326 commit a52e8cb
Showing 1 changed file with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -84,12 +84,15 @@ export const mapCaseStateToTagVariant = (
text: formatMessage(isCourtRole ? strings.new : strings.sent),
}
case CaseState.RECEIVED: {
if (isIndictmentCase(caseType) && defendants) {
if (scheduledDate && !haveAllSubpoenasBeenServiced(defendants)) {
return {
color: 'red',
text: formatMessage(strings.notYetServiced),
}
if (
isIndictmentCase(caseType) &&
defendants &&
scheduledDate &&
!haveAllSubpoenasBeenServiced(defendants)
) {
return {
color: 'red',
text: formatMessage(strings.notYetServiced),
}
}
switch (indictmentDecision) {
Expand Down

0 comments on commit a52e8cb

Please sign in to comment.