From 97f90427ef4a50c03826240e0365e7410d4aaf93 Mon Sep 17 00:00:00 2001 From: kyuhho Date: Mon, 5 Aug 2024 23:18:16 +0900 Subject: [PATCH] chore: fix conditional statement (#374) --- .../Seller/SellerOpenConsult/MainQuestionSection.tsx | 2 +- src/pages/Seller/SellerMyPageModifyProfile.tsx | 3 ++- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/src/components/Seller/SellerOpenConsult/MainQuestionSection.tsx b/src/components/Seller/SellerOpenConsult/MainQuestionSection.tsx index 69344d5b..e899acfc 100644 --- a/src/components/Seller/SellerOpenConsult/MainQuestionSection.tsx +++ b/src/components/Seller/SellerOpenConsult/MainQuestionSection.tsx @@ -41,7 +41,7 @@ function MainQuestionSection() {
{card?.title} - {card?.isPublic && ( + {!card?.isPublic && ( 비공개 diff --git a/src/pages/Seller/SellerMyPageModifyProfile.tsx b/src/pages/Seller/SellerMyPageModifyProfile.tsx index acf3c233..f7409719 100644 --- a/src/pages/Seller/SellerMyPageModifyProfile.tsx +++ b/src/pages/Seller/SellerMyPageModifyProfile.tsx @@ -16,7 +16,7 @@ import { useInput } from 'hooks/useInput'; import { useEffect, useState } from 'react'; import { useNavigate } from 'react-router-dom'; import { useRecoilState, useRecoilValue } from 'recoil'; -import styled from 'styled-components'; + import { LoadingSpinner } from 'utils/LoadingSpinner'; import { isBankModalOpenState, @@ -197,6 +197,7 @@ export const SellerMypageModifyProfile = () => { // bankOwner.setValue(profileDummyData.bankOwner); }; fetchProfile(); + // eslint-disable-next-line react-hooks/exhaustive-deps }, []); //