diff --git a/frontend/views/components/modal/Prompt.vue b/frontend/views/components/modal/Prompt.vue index 964c760fe..bddb322a7 100644 --- a/frontend/views/components/modal/Prompt.vue +++ b/frontend/views/components/modal/Prompt.vue @@ -45,11 +45,11 @@ export default ({ methods: { closeModal () { sbp('okTurtles.events/emit', MODAL_RESPONSE, false) - this.$refs.modal.close() + this.$refs.modal.unload() }, submit () { sbp('okTurtles.events/emit', MODAL_RESPONSE, true) - this.$refs.modal.close() + this.$refs.modal.unload() } } }: Object) diff --git a/frontend/views/containers/chatroom/SendArea.vue b/frontend/views/containers/chatroom/SendArea.vue index 274d2d3dc..b1d1bedbb 100644 --- a/frontend/views/containers/chatroom/SendArea.vue +++ b/frontend/views/containers/chatroom/SendArea.vue @@ -387,7 +387,10 @@ export default ({ const userArr = this.ephemeral.typingUsers if (userArr.length) { - const getDisplayName = (memberID) => (this.globalProfile(memberID).displayName || this.globalProfile(memberID).username || memberID) + const getDisplayName = (memberID) => { + const profile = this.globalProfile(memberID) + return profile?.displayName || profile?.username || memberID + } const isMultiple = userArr.length > 1 const usernameCombined = userArr.map(u => getDisplayName(u)).join(', ') diff --git a/frontend/views/containers/chatroom/poll-message-content/PollVoteResult.vue b/frontend/views/containers/chatroom/poll-message-content/PollVoteResult.vue index d588d0795..9a20df7ed 100644 --- a/frontend/views/containers/chatroom/poll-message-content/PollVoteResult.vue +++ b/frontend/views/containers/chatroom/poll-message-content/PollVoteResult.vue @@ -32,7 +32,7 @@ .c-voters .c-voter-avatars-item(v-for='entry in list.voters' :key='entry.id') - voter-avatars(:voters='entry.members' :optionName='entry.optionName') + voter-avatars(:voters='entry.users' :optionName='entry.optionName')