diff --git a/src/client/app/common/views/components/follow-button.vue b/src/client/app/common/views/components/follow-button.vue index 17282cf8f..074a0c05b 100644 --- a/src/client/app/common/views/components/follow-button.vue +++ b/src/client/app/common/views/components/follow-button.vue @@ -92,9 +92,9 @@ export default Vue.extend({ try { if (this.isFollowing) { - const canceled = await this.$root.dialog({ + const { canceled } = await this.$root.dialog({ type: 'warning', - text: this.$t('@.unfollow-confirm', { name: user.name || user.username }), + text: this.$t('@.unfollow-confirm', { name: this.user.name || this.user.username }), showCancelButton: true });