Skip to content

Commit

Permalink
Handles no hispanic code.
Browse files Browse the repository at this point in the history
  • Loading branch information
charlon committed Jun 25, 2024
1 parent aacd8a9 commit d1d8119
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions compass_vue/components/student/profile.vue
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
</KeyValue>
</li>
<li>
<KeyValue>
<KeyValue v-if="person.student.hispanic_code !== null">
<template #key>Hispanic</template>
<template #value>
{{ person.student.hispanic_code }},
Expand All @@ -120,6 +120,12 @@
{{ person.student.hispanic_group_desc }}
</template>
</KeyValue>
<KeyValue v-else>
<template #key>Hispanic</template>
<template #value>
Not indicated
</template>
</KeyValue>
</li>
<li class="mt-3">
<KeyValue>
Expand Down Expand Up @@ -174,7 +180,7 @@
v-for="(sport, index) in person.student.sports"
:key="sport.code"
>
{{ sport.sport_code }}
{{ sport.sport_code }}, {{ sport.sport_descrip }}
<span v-if="index + 1 < person.student.sports.length"
>,
</span>
Expand Down

0 comments on commit d1d8119

Please sign in to comment.