From c6da583179107eef38a598e8fbd038ba21ca9856 Mon Sep 17 00:00:00 2001 From: han-kimm <4188989@naver.com> Date: Mon, 13 May 2024 11:50:14 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20Post=20=EC=9E=90=EB=8F=99=EC=A0=80?= =?UTF-8?q?=EC=9E=A5=20=EC=A3=BC=EA=B8=B0=2010=20->=2030=EC=B4=88=20=20/?= =?UTF-8?q?=20PostPc=20=EC=86=94=EB=A1=9C=20=EC=95=84=ED=8B=B0=EC=8A=A4?= =?UTF-8?q?=ED=8A=B8=EB=8F=84=20=EA=B0=80=EB=8A=A5=ED=95=98=EA=B2=8C=20?= =?UTF-8?q?=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- app/(route)/post/_components/PostPc.tsx | 2 +- app/_components/GenericFormProvider.tsx | 2 +- app/_constants/confetti.ts | 1 - 3 files changed, 2 insertions(+), 3 deletions(-) diff --git a/app/(route)/post/_components/PostPc.tsx b/app/(route)/post/_components/PostPc.tsx index 2f6f3f8d..89600d01 100644 --- a/app/(route)/post/_components/PostPc.tsx +++ b/app/(route)/post/_components/PostPc.tsx @@ -13,7 +13,7 @@ const PostPc = () => { const { watch } = useFormContext(); const { isCheck } = useStore((state) => ({ isCheck: state.isWarningCheck })); const { address, artists, groupId, eventType, placeName, startDate, endDate } = watch(); - const isDisabled = !(artists.length > 0 && address && artists && groupId && eventType && placeName && startDate && endDate) || !isCheck; + const isDisabled = !(((groupId && artists.length === 0) || artists.length > 0) && address && eventType && placeName && startDate && endDate) || !isCheck; return (