diff --git a/src/components/Main/MainView/MessageElement/StampDetailElement.vue b/src/components/Main/MainView/MessageElement/StampDetailElement.vue index d2e8a79d9..9719c54eb 100644 --- a/src/components/Main/MainView/MessageElement/StampDetailElement.vue +++ b/src/components/Main/MainView/MessageElement/StampDetailElement.vue @@ -1,15 +1,16 @@ @@ -17,7 +18,7 @@ import StampDetailElementContent from './StampDetailElementContent.vue' import { computed } from 'vue' import { useStampsStore } from '/@/store/entities/stamps' -import type { MessageStampById } from '/@/lib/messageStampList' +import type { StampUser, MessageStampById } from '/@/lib/messageStampList' const props = defineProps<{ stamp: MessageStampById @@ -28,6 +29,9 @@ const { stampsMap } = useStampsStore() const stampName = computed( () => stampsMap.value.get(props.stamp.id)?.name ?? '' ) + +const isLastUser = (user: StampUser) => + user === props.stamp.users[props.stamp.users.length - 1] diff --git a/src/components/Main/MainView/MessageElement/StampDetailElementContent.vue b/src/components/Main/MainView/MessageElement/StampDetailElementContent.vue index 7e3b5527b..bd28d2f65 100644 --- a/src/components/Main/MainView/MessageElement/StampDetailElementContent.vue +++ b/src/components/Main/MainView/MessageElement/StampDetailElementContent.vue @@ -1,7 +1,7 @@