Skip to content

Commit

Permalink
Issue #PS-1522 chore: condition change for remote and regular cohort …
Browse files Browse the repository at this point in the history
…type
  • Loading branch information
suvarnakale committed Jul 29, 2024
1 parent f977656 commit 936fde7
Showing 1 changed file with 9 additions and 5 deletions.
14 changes: 9 additions & 5 deletions src/pages/centers/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -416,7 +416,7 @@ const TeachingCenters = () => {
{/* Regular Centers */}
{filteredCenters.some(
(center) =>
center.centerType === 'REGULAR' ||
center.centerType?.toUpperCase() === 'REGULAR' ||
center.centerType === ''
) && (
<div>
Expand All @@ -432,8 +432,8 @@ const TeachingCenters = () => {
{filteredCenters
.filter(
(center) =>
center.centerType === 'REGULAR' ||
center.centerType === ''
center.centerType?.toUpperCase() ===
'REGULAR' || center.centerType === ''
)
.map((center) => (
<React.Fragment key={center.cohortId}>
Expand Down Expand Up @@ -503,7 +503,8 @@ const TeachingCenters = () => {

{/* Remote Centers */}
{filteredCenters.some(
(center) => center.centerType === 'REMOTE'
(center) =>
center.centerType?.toUpperCase() === 'REMOTE'
) && (
<div>
<Box
Expand All @@ -516,7 +517,10 @@ const TeachingCenters = () => {
{t('CENTERS.REMOTE_CENTERS')}
</Box>
{filteredCenters
.filter((center) => center.centerType === 'REMOTE')
.filter(
(center) =>
center.centerType?.toUpperCase() === 'REMOTE'
)
.map((center) => (
<React.Fragment key={center.cohortId}>
<Box
Expand Down

0 comments on commit 936fde7

Please sign in to comment.