From a2b67cb153622998993539ffb97fa1a99c84eafb Mon Sep 17 00:00:00 2001 From: Andre Alves Date: Wed, 6 Jul 2022 14:51:03 -0300 Subject: [PATCH] fix: hitting enter after setting password redirects to demo page --- .../src/components/manager/subscribe/ConfirmPasswordForm.js | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/desktop-client/src/components/manager/subscribe/ConfirmPasswordForm.js b/packages/desktop-client/src/components/manager/subscribe/ConfirmPasswordForm.js index cc50b4e..695e4ab 100644 --- a/packages/desktop-client/src/components/manager/subscribe/ConfirmPasswordForm.js +++ b/packages/desktop-client/src/components/manager/subscribe/ConfirmPasswordForm.js @@ -47,6 +47,7 @@ export function ConfirmPasswordForm({ buttons, onSetPassword, onError }) { type={showPassword ? 'text' : 'password'} value={password1} onChange={e => setPassword1(e.target.value)} + onEnter={onSubmit} /> setPassword2(e.target.value)} style={{ marginTop: 10 }} + onEnter={onSubmit} />