From 6e17a74debf222b680df15287347532a5d5ce5ec Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=9B=90=EB=8D=94?= Date: Fri, 12 Feb 2021 13:14:55 +0900 Subject: [PATCH] chore: fixed deepscan issues --- components/BotCard.tsx | 12 +++++++----- pages/bots/[id].tsx | 2 +- 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/components/BotCard.tsx b/components/BotCard.tsx index 5eb1cdd..f77f5d1 100644 --- a/components/BotCard.tsx +++ b/components/BotCard.tsx @@ -53,7 +53,7 @@ const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => {
보기 @@ -66,11 +66,13 @@ const BotCard = ({ manage=false, bot }: BotProps): JSX.Element => { > 관리하기 - : + : + 초대하기 - + + }
diff --git a/pages/bots/[id].tsx b/pages/bots/[id].tsx index 75084f8..ab9e952 100644 --- a/pages/bots/[id].tsx +++ b/pages/bots/[id].tsx @@ -28,7 +28,7 @@ const Tooltip = dynamic(() => import('@components/Tooltip')) const Markdown = dynamic(() => import ('@components/Markdown')) const Bots: NextPage = ({ data, date, user, theme, setTheme }) => { - const bg = checkBotFlag(data.flags, 'trusted') && data.banner + const bg = checkBotFlag(data?.flags, 'trusted') && data?.banner const router = useRouter() if (!data || !data.id) return if(data.vanity && data.vanity !== router.query.id) router.push(`/bots/${data.vanity}`)