From 3d855ed0987d543484705818a2ce66ce74a8fac5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=84=ED=98=B8?= Date: Thu, 26 Sep 2024 21:32:06 +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?= 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), }); }