Skip to content

Commit

Permalink
Fix bug in which resident names are not showing
Browse files Browse the repository at this point in the history
  • Loading branch information
jimmyzhen committed Sep 3, 2024
1 parent eb331e6 commit c1bdf6c
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
8 changes: 4 additions & 4 deletions components/PreviewEmail.js
Original file line number Diff line number Diff line change
Expand Up @@ -314,7 +314,7 @@ export default function PreviewEmail({ eventWeek }) {
serviceTitle="Perinatal (Resident)"
onCallService="perinatal_resident"
serviceDate={eventInfo.perinatal_resident_date_0}
resident={eventInfo.perinatal_resident_perinatal_resident_0}
resident={eventInfo.perinatal_resident_resident_0}
/>
</td>
</tr>
Expand All @@ -324,17 +324,17 @@ export default function PreviewEmail({ eventWeek }) {
serviceTitle="Laboratory Rotation"
onCallService="laboratory_rotation"
serviceDate={eventInfo.laboratory_rotation_date_0}
resident={eventInfo.laboratory_rotation_laboratory_rotation_0}
resident={eventInfo.laboratory_rotation_resident_0}
/>
</td>
</tr>
<tr>
<td align="left" valign="top" className="em_section_table_oncall">
<PreviewOnCallSchedule
serviceTitle="Cancer Rotation"
onCallService="laboratory_rotation"
onCallService="cancer_rotation"
serviceDate={eventInfo.cancer_rotation_date_0}
resident={eventInfo.cancer_rotation_cancer_rotation_0}
resident={eventInfo.cancer_rotation_resident_0}
/>
</td>
</tr>
Expand Down
1 change: 1 addition & 0 deletions components/preview_components/previewOnCallSchedule.js
Original file line number Diff line number Diff line change
Expand Up @@ -72,6 +72,7 @@ function PreviewOnCallSchedule({
{attending && resident ? `, Dr. ${resident}` : ''}
{provider && onCallService === 'ert' ? `Nurse Practitioner - ${provider}` : ''}
{!serviceDate && !attending && resident ? formatResident() : ''}
{onCallService === 'perinatal_resident' || onCallService === 'laboratory_rotation' || onCallService === 'cancer_rotation' ? resident : ''}
</p>
</td>
</tr>
Expand Down

0 comments on commit c1bdf6c

Please sign in to comment.