Fix mentor for real

This commit is contained in:
Christian Cueni 2024-08-20 16:55:14 +02:00
parent 563897d96b
commit 9779c96d74
1 changed files with 22 additions and 22 deletions

View File

@ -100,7 +100,7 @@ interface Expert {
interface Mentor {
id: number;
mentor: Expert;
agent: Expert;
}
const experts = computed<Expert[] | null>(() => {
@ -110,7 +110,7 @@ const experts = computed<Expert[] | null>(() => {
return circleExperts.value;
} else {
if (mentors.value?.length > 0) {
return mentors.value.map((m: Mentor) => m.mentor);
return mentors.value.map((m: Mentor) => m.agent);
}
}
}
@ -255,26 +255,26 @@ watch(
}}
</div>
<!-- <div-->
<!-- v-for="expert in experts"-->
<!-- :key="expert.id"-->
<!-- class="mb-6 mt-6 flex flex-row items-center space-x-2 last:mb-0"-->
<!-- >-->
<!-- <img-->
<!-- class="h-[48px] rounded-full"-->
<!-- :alt="expert.last_name"-->
<!-- :src="-->
<!-- expert.avatar_url ||-->
<!-- '/static/avatars/myvbv-default-avatar.png'-->
<!-- "-->
<!-- />-->
<!-- <div class="flex flex-col">-->
<!-- {{ expert.first_name }} {{ expert.last_name }}-->
<!-- <a class="text-gray-800" :href="`mailto:${expert.email}`">-->
<!-- {{ expert.email }}-->
<!-- </a>-->
<!-- </div>-->
<!-- </div>-->
<div
v-for="expert in experts"
:key="expert.id"
class="mb-6 mt-6 flex flex-row items-center space-x-2 last:mb-0"
>
<img
class="h-[48px] rounded-full"
:alt="expert.last_name"
:src="
expert.avatar_url ||
'/static/avatars/myvbv-default-avatar.png'
"
/>
<div class="flex flex-col">
{{ expert.first_name }} {{ expert.last_name }}
<a class="text-gray-800" :href="`mailto:${expert.email}`">
{{ expert.email }}
</a>
</div>
</div>
</div>
</div>
</div>