From 964f94d35f19014d45b52f7b9e8a7ba8a2f679c6 Mon Sep 17 00:00:00 2001 From: JinHo Kim <81083461+jinhokim98@users.noreply.github.com> Date: Thu, 26 Sep 2024 21:43:02 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20replace=20','=20->=20/,/g=EB=A1=9C=20?= =?UTF-8?q?=EB=B3=80=EA=B2=BD=ED=95=B4=EC=84=9C=20=EB=AA=A8=EB=93=A0=20?= =?UTF-8?q?=EC=BD=A4=EB=A7=88=20=EC=A7=80=EC=9A=B0=EB=8A=94=20=EA=B2=83?= =?UTF-8?q?=EC=9C=BC=EB=A1=9C=20=EC=88=98=EC=A0=95=20(#670)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/hooks/useMembersStep.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/client/src/hooks/useMembersStep.ts b/client/src/hooks/useMembersStep.ts index 86c42b0b6..002ccf7c4 100644 --- a/client/src/hooks/useMembersStep.ts +++ b/client/src/hooks/useMembersStep.ts @@ -88,7 +88,7 @@ const useMembersStep = ({billInfo, setBillInfo, currentMembers, setStep}: Props) }); postBill({ title: billInfo.title, - price: Number(billInfo.price.replace(',', '')), + price: Number(billInfo.price.replace(/,/g, '')), memberIds: billInfo.members.map(member => member.id === -1 ? newMembers.members.find(m => m.name === member.name)?.id || member.id : member.id, ), @@ -96,7 +96,7 @@ const useMembersStep = ({billInfo, setBillInfo, currentMembers, setStep}: Props) } else { postBill({ title: billInfo.title, - price: Number(billInfo.price.replace(',', '')), + price: Number(billInfo.price.replace(/,/g, '')), memberIds: billInfo.members.map(({id}) => id), }); }