From 1019e0bcfd80f411940c86bf8333282ea387693b Mon Sep 17 00:00:00 2001
From: Zero King <l2dy@icloud.com>
Date: Mon, 12 Apr 2021 14:04:10 +0000
Subject: Add prop validations in MkAcct (#7439)

---
 src/client/components/global/acct.vue | 11 ++++++++++-
 1 file changed, 10 insertions(+), 1 deletion(-)

(limited to 'src/client/components/global/acct.vue')

diff --git a/src/client/components/global/acct.vue b/src/client/components/global/acct.vue
index e3601ff797..8354760651 100644
--- a/src/client/components/global/acct.vue
+++ b/src/client/components/global/acct.vue
@@ -11,7 +11,16 @@ import { toUnicode } from 'punycode/';
 import { host } from '@client/config';
 
 export default defineComponent({
-	props: ['user', 'detail'],
+	props: {
+		user: {
+			type: Object,
+			required: true
+		},
+		detail: {
+			type: Boolean,
+			default: false
+		},
+	},
 	data() {
 		return {
 			host: toUnicode(host),
-- 
cgit v1.3.1-freya

