enhancement: using link id as key, instead of username as usernames can be same for different social networks

This commit is contained in:
Nimit Bhargava 2020-12-11 17:12:26 +05:30
parent c3d3d2d981
commit c5cbb9fb8c

View File

@ -6,7 +6,7 @@
{{ $t('profile.socialMedia') }} {{ userName | truncate(15) }}? {{ $t('profile.socialMedia') }} {{ userName | truncate(15) }}?
</ds-text> </ds-text>
<template> <template>
<ds-space v-for="link in socialMediaLinks()" :key="link.username" margin="x-small"> <ds-space v-for="link in socialMediaLinks()" :key="link.id" margin="x-small">
<a :href="link.url" target="_blank"> <a :href="link.url" target="_blank">
<img :src="link.favicon" alt="Link:" height="22" width="22" /> <img :src="link.favicon" alt="Link:" height="22" width="22" />
{{ link.username }} {{ link.username }}