Fix Monero withdraw form reset after successful withdrawal.
Use resetFields so validation state clears without re-triggering required rules on an empty address.
This commit is contained in:
@@ -263,8 +263,7 @@ const onWithdrawSubmit = async (): Promise<void> => {
|
||||
});
|
||||
}
|
||||
|
||||
withdrawForm.destinationAddress = '';
|
||||
withdrawFormRef.value?.clearValidate();
|
||||
withdrawFormRef.value?.resetFields();
|
||||
|
||||
await loadWalletStatus();
|
||||
} catch (error) {
|
||||
@@ -277,7 +276,7 @@ const onWithdrawSubmit = async (): Promise<void> => {
|
||||
const onRevealSeedClick = async (): Promise<void> => {
|
||||
try {
|
||||
await ElMessageBox.confirm(
|
||||
'The recovery seed grants full control over this shop wallet. Store it offline. Never share it or enter it on untrusted sites.',
|
||||
'The recovery seed grants full control over this shop wallet. Store it offline. Never share it with anyone.',
|
||||
'Reveal recovery seed?',
|
||||
{
|
||||
confirmButtonText: 'I understand',
|
||||
|
||||
Reference in New Issue
Block a user