Skip to content

Commit da0e6d2

Browse files
authored
Merge pull request #1250 from peanutprotocol/fix/existing-acc-error
[TASK-14950] fix: Existing account error not shown on withdraw
2 parents 8a18dff + 28311f6 commit da0e6d2

1 file changed

Lines changed: 0 additions & 7 deletions

File tree

src/components/AddWithdraw/DynamicBankAccountForm.tsx

Lines changed: 0 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -120,13 +120,6 @@ export const DynamicBankAccountForm = forwardRef<{ handleSubmit: () => void }, D
120120
handleSubmit: handleSubmit(onSubmit),
121121
}))
122122

123-
// Clear submission error when form becomes valid and BIC field is filled (if shown)
124-
useEffect(() => {
125-
if (submissionError && isValid && (!isIban || getValues('bic'))) {
126-
setSubmissionError(null)
127-
}
128-
}, [isValid, submissionError, isIban, getValues])
129-
130123
// Trigger BIC validation when debounced value changes
131124
useEffect(() => {
132125
if (isIban && debouncedBicValue && debouncedBicValue.trim().length > 0) {

0 commit comments

Comments
 (0)