diff --git a/packages/frontendmu-data/data/speakers-profile.json b/packages/frontendmu-data/data/speakers-profile.json index bc56f3a..4473c28 100644 --- a/packages/frontendmu-data/data/speakers-profile.json +++ b/packages/frontendmu-data/data/speakers-profile.json @@ -11,6 +11,7 @@ "bio": "Front-End Engineer | Streamer (Twitch)", "job_title": "Senior Front-end Engineer @ Livestorm", "location": "Mauritius", + "website": "", "github": "cedpoilly", "twitter": "" } diff --git a/packages/frontendmu-nuxt/components/speaker/Single.vue b/packages/frontendmu-nuxt/components/speaker/Single.vue index 9782e74..8c0cf3e 100644 --- a/packages/frontendmu-nuxt/components/speaker/Single.vue +++ b/packages/frontendmu-nuxt/components/speaker/Single.vue @@ -16,11 +16,12 @@ const person = computed(() => props.speaker.person) const sessions = computed(() => props.speaker.sessions) const profile = computed(() => props.speaker.profile) -const hasProfileBio = computed(() => profile.value.bio !== '') -const hasProfileLocation = computed(() => profile.value.location !== '') -const hasProfileWebsite = computed(() => profile.value.website !== '') -const hasProfileGithub = computed(() => profile.value.github !== '') -const hasProfileTwitter = computed(() => profile.value.twitter !== '') +const hasProfileBio = computed(() => profile.value.bio && profile.value.bio !== '') +const hasProfileJobTitle = computed(() => profile.value.job_title && profile.value.job_title !== '') +const hasProfileLocation = computed(() => profile.value.location && profile.value.location !== '') +const hasProfileWebsite = computed(() => profile.value.website && profile.value.website !== '') +const hasProfileGithub = computed(() => profile.value.github && profile.value.github !== '') +const hasProfileTwitter = computed(() => profile.value.twitter && profile.value.twitter !== '') const speaker_photo = getGithubUrl(person.value.github_account) @@ -94,6 +95,10 @@ const speaker_photo = getGithubUrl(person.value.github_account)