Skip to content

Commit

Permalink
refactor: roleのiconUrlは必ず存在するものとして扱うように
Browse files Browse the repository at this point in the history
  • Loading branch information
hideki0403 committed Jan 21, 2024
1 parent cdb4d6c commit 5515562
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions packages/frontend/src/components/MkNoteHeader.vue
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,7 @@ SPDX-License-Identifier: AGPL-3.0-only
<div v-if="note.user.isBot" :class="$style.isBot">bot</div>
<div :class="$style.username"><MkAcct :user="note.user"/></div>
<div v-if="note.user.badgeRoles" :class="$style.badgeRoles">
<template v-for="(role, i) in note.user.badgeRoles">
<img v-if="role.iconUrl" :key="i" v-tooltip="role.name" :class="$style.badgeRole" :src="role.iconUrl"/>
</template>
<img v-for="(role, i) in note.user.badgeRoles" :key="i" v-tooltip="role.name" :class="$style.badgeRole" :src="role.iconUrl!"/>
</div>
<div :class="$style.info">
<div v-if="mock">
Expand Down

0 comments on commit 5515562

Please sign in to comment.