mirror of
https://github.com/documenso/documenso
synced 2026-05-24 09:28:27 +00:00
fix: update the dialog cancel to reset
This commit is contained in:
parent
f646fa29d7
commit
6f958b9320
2 changed files with 9 additions and 2 deletions
|
|
@ -202,7 +202,7 @@ export const EnableAuthenticatorAppDialog = ({
|
|||
variant="secondary"
|
||||
onClick={() => {
|
||||
onOpenChange(false);
|
||||
setupTwoFactorAuthenticationForm.setValue('password', '');
|
||||
setupTwoFactorAuthenticationForm.reset();
|
||||
}}
|
||||
>
|
||||
Cancel
|
||||
|
|
|
|||
|
|
@ -138,7 +138,14 @@ export const ViewRecoveryCodesDialog = ({ open, onOpenChange }: ViewRecoveryCode
|
|||
/>
|
||||
|
||||
<DialogFooter>
|
||||
<Button type="button" variant="secondary" onClick={() => onOpenChange(false)}>
|
||||
<Button
|
||||
type="button"
|
||||
variant="secondary"
|
||||
onClick={() => {
|
||||
onOpenChange(false);
|
||||
viewRecoveryCodesForm.reset();
|
||||
}}
|
||||
>
|
||||
Cancel
|
||||
</Button>
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue