{
{
/>
) : activeStep === 1 ? (
+ ) : sendAmount === 'fail' ? (
+ setActiveStep((s) => s + 1)} />
) : (
{
variant={activeStep > 0 ? 'contained' : 'text'}
color={activeStep > 0 ? 'primary' : 'default'}
disableElevation
- onClick={handleNextStep}
+ onClick={activeStep === 3 ? handleFinish : handleNextStep}
disabled={!(toAddress.length > 0 && sendAmount.length > 0)}
>
{activeStep === 1
? 'Send'
- : activeStep === steps.length - 1
+ : activeStep === steps.length
? 'Finish'
: 'Next'}