From 0464594cb800c06ccc71c156d2fed5a3f38f4a10 Mon Sep 17 00:00:00 2001 From: LSJ Date: Sun, 17 Nov 2024 01:02:20 +0900 Subject: [PATCH] fix error --- pageTemplates/gather/detail/GatherHeader.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pageTemplates/gather/detail/GatherHeader.tsx b/pageTemplates/gather/detail/GatherHeader.tsx index 6b545625..bb36745b 100644 --- a/pageTemplates/gather/detail/GatherHeader.tsx +++ b/pageTemplates/gather/detail/GatherHeader.tsx @@ -1,9 +1,9 @@ import { Box, Flex } from "@chakra-ui/react"; import dayjs from "dayjs"; +import { useSession } from "next-auth/react"; import Image from "next/image"; import Link from "next/link"; import { useRouter } from "next/router"; -import { useSession } from "next-auth/react"; import { useState } from "react"; import styled from "styled-components"; @@ -42,7 +42,7 @@ function GatherHeader({ gatherData }: IGatherHeader) { setDrawerType("kakaoShare")}> - {(gatherData.user as IUserSummary)._id !== session?.user.id && ( + {(gatherData.user as IUserSummary)._id === session?.user.id && (