[bug] fix links to @undefined

This commit is contained in:
Andrea Vos 2021-07-27 17:14:57 +02:00
parent 9b188c3448
commit b7eddca518

View File

@ -13,7 +13,7 @@
<Profile :user="user" :profile="profile" :terms="terms">
<div v-if="Object.keys(user.profiles).length > 1">
<LocaleLink v-for="(options, locale) in locales" :key="locale" v-if="user.profiles[locale] !== undefined"
:locale="locale" :link="`/@${profile.username}`"
:locale="locale" :link="`/@${user.username}`"
:class="['btn', locale === config.locale ? 'btn-primary disabled' : 'btn-outline-primary', 'btn-sm', 'mb-2 mx-1']">
{{options.name}}
</LocaleLink>