From fe149bcc5c91c9325319070b23da164b735c8fa1 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EA=B9=80=EC=A7=84=ED=98=B8?= Date: Wed, 2 Oct 2024 12:48:28 +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?= 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(() => {