From 28311f65db230dc651bccedfe39dc2458f60a271 Mon Sep 17 00:00:00 2001 From: Zishan Mohd Date: Wed, 24 Sep 2025 12:26:55 +0530 Subject: [PATCH] fix: Existing account error not shown on withdraw --- src/components/AddWithdraw/DynamicBankAccountForm.tsx | 7 ------- 1 file changed, 7 deletions(-) diff --git a/src/components/AddWithdraw/DynamicBankAccountForm.tsx b/src/components/AddWithdraw/DynamicBankAccountForm.tsx index 0617df83d..89936dcd6 100644 --- a/src/components/AddWithdraw/DynamicBankAccountForm.tsx +++ b/src/components/AddWithdraw/DynamicBankAccountForm.tsx @@ -120,13 +120,6 @@ export const DynamicBankAccountForm = forwardRef<{ handleSubmit: () => void }, D handleSubmit: handleSubmit(onSubmit), })) - // Clear submission error when form becomes valid and BIC field is filled (if shown) - useEffect(() => { - if (submissionError && isValid && (!isIban || getValues('bic'))) { - setSubmissionError(null) - } - }, [isValid, submissionError, isIban, getValues]) - // Trigger BIC validation when debounced value changes useEffect(() => { if (isIban && debouncedBicValue && debouncedBicValue.trim().length > 0) {