From f6340879e067d0e5fa668f4cb28eed17cb7f3c1b Mon Sep 17 00:00:00 2001 From: JinHo Kim <81083461+jinhokim98@users.noreply.github.com> Date: Wed, 2 Oct 2024 14:00:48 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20=EA=B3=84=EC=A2=8C=EB=B2=88=ED=98=B8=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=EB=90=98=EC=A7=80=20=EC=95=8A=EB=8D=98=20?= =?UTF-8?q?=EB=B2=84=EA=B7=B8=20=ED=95=B4=EA=B2=B0=20(#691)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- client/src/hooks/useAccount.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/client/src/hooks/useAccount.ts b/client/src/hooks/useAccount.ts index 418656cc5..ed1315699 100644 --- a/client/src/hooks/useAccount.ts +++ b/client/src/hooks/useAccount.ts @@ -57,22 +57,8 @@ const useAccount = () => { setTimeout(() => setIsPasting(false), 0); }; - const getChangedField = () => { - const changedField: Partial = {}; - - if (bankNameState.trim() !== '' && bankName !== bankNameState) { - changedField.bankName = bankNameState; - } - - if (accountNumberState.trim() !== '' && accountNumber !== accountNumberState) { - changedField.accountNumber = accountNumberState; - } - - return changedField; - }; - const enrollAccount = async () => { - await patchEventOutline(getChangedField()); + await patchEventOutline({bankName: bankNameState, accountNumber: accountNumberState}); }; useEffect(() => {