edit dependency useeffect create card
This commit is contained in:
@@ -47,7 +47,7 @@ export const AddNewCardDialog: FC<Props> = ({ isOpen, close }) => {
|
||||
IBAN: "",
|
||||
PAN: "",
|
||||
})
|
||||
}, [isOpen])
|
||||
}, [isOpen , reset])
|
||||
return (
|
||||
<DialogComponent isOpen={isOpen} close={close} title="ایجاد حساب بانکی جدید" subTitle="لطفا اطلاعات را با دقت وارد نمایید" icon={<CardAdd color="#11212D" className="size-[50px]" />}>
|
||||
<form onSubmit={handleSubmit(createNewCard)} className="flex flex-col gap-[42px] mt-9">
|
||||
|
||||
Reference in New Issue
Block a user