Skip to content

Commit 419109a

Browse files
authored
Merge pull request #211 from CodeForPhilly/US207-fixing-add-to-queue-button-error
US207 fixing add to queue button error
2 parents c51396a + aaf4908 commit 419109a

File tree

1 file changed

+7
-3
lines changed

1 file changed

+7
-3
lines changed

frontend/src/components/ParticipantInfo.js

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -132,8 +132,12 @@ const ParticipantInfo = observer(() => {
132132
race: data[participantIndex].race,
133133
gender: data[participantIndex].gender,
134134
hasInsurance: data[participantIndex].is_insured,
135-
insuranceType: data[participantIndex],
136-
insurer: data[participantIndex].insurer,
135+
insuranceType: data[participantIndex].insuranceType
136+
? data[participantIndex].insuranceType
137+
: "",
138+
insurer: data[participantIndex].insurer
139+
? data[participantIndex].insurer
140+
: "",
137141
priority: data[participantIndex].priority,
138142
note: data[participantIndex].note,
139143
})
@@ -171,7 +175,7 @@ const ParticipantInfo = observer(() => {
171175
gender: participant.gender,
172176
is_insured: participant.hasInsurance,
173177
insuranceType: participant.insuranceType,
174-
insurer: participant.insurer,
178+
insurer: participant.insurer.name,
175179
priority: participant.priority,
176180
note: participant.note,
177181
})

0 commit comments

Comments
 (0)