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