Skip to content

Commit

Permalink
fix error
Browse files Browse the repository at this point in the history
  • Loading branch information
SeungJL committed Nov 16, 2024
1 parent 96ea4cd commit 0464594
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions pageTemplates/gather/detail/GatherHeader.tsx
Original file line number Diff line number Diff line change
@@ -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";

Expand Down Expand Up @@ -42,7 +42,7 @@ function GatherHeader({ gatherData }: IGatherHeader) {
<IconWrapper onClick={() => setDrawerType("kakaoShare")}>
<i className="fa-light fa-share-nodes fa-lg" />
</IconWrapper>
{(gatherData.user as IUserSummary)._id !== session?.user.id && (
{(gatherData.user as IUserSummary)._id === session?.user.id && (
<IconWrapper>
<Link href={`/gather/${gatherData.id}/setting`}>
<i className="fa-light fa-gear fa-lg" />
Expand Down

0 comments on commit 0464594

Please sign in to comment.