diff --git a/src/components/Dialogs/WithdrawVaultUSDTDialog/index.tsx b/src/components/Dialogs/WithdrawVaultUSDTDialog/index.tsx index 9d7c8ccfda..6edc363bf1 100644 --- a/src/components/Dialogs/WithdrawVaultUSDTDialog/index.tsx +++ b/src/components/Dialogs/WithdrawVaultUSDTDialog/index.tsx @@ -18,8 +18,20 @@ const DynamicContent = dynamic(() => import('./Content'), { }) const BaseWithdrawVaultUSDTDialog = () => { - const { show, openDialog, closeDialog } = useDialogSwitch(true) - const { currStep, forward } = useStep('intro') + const defaultStep = 'intro' + const { + show, + openDialog: baseOpenDialog, + closeDialog, + } = useDialogSwitch(true) + const { currStep, forward, reset } = useStep(defaultStep) + + const openDialog = () => { + if (currStep !== defaultStep) { + reset(defaultStep) + } + baseOpenDialog() + } useEventListener(OPEN_WITHDRAW_VAULT_USDT_DIALOG, openDialog)