diff options
Diffstat (limited to 'packages/bank/src/pages/home/index.tsx')
-rw-r--r-- | packages/bank/src/pages/home/index.tsx | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/packages/bank/src/pages/home/index.tsx b/packages/bank/src/pages/home/index.tsx index df07f90..2d015ac 100644 --- a/packages/bank/src/pages/home/index.tsx +++ b/packages/bank/src/pages/home/index.tsx @@ -1480,7 +1480,7 @@ const LoginForm = (Props: any): VNode => { backendStateSetter, pageStateSetter ).then(()=>document.body.classList.remove('transition-login')); - submitDataSetter(undefined); + submitDataSetter({username: '',password: '',}); setTimeout(() => document.body.classList.remove('transition-login'), 500); // just incase the loginCall never exits }, 500); }}>{i18n`Login`} @@ -1622,6 +1622,11 @@ const RegistrationForm = (Props: any): VNode => { * like done in the login function. Now set to the empty * strings due to a non lively update of the <input> fields * after setting to undefined. + * ===== + * After further testing, simply callign submitDataSetter(undefined) + * (how login used to do it) might be problematic, as setting to + * undefined causes weird typerrors on logout->re-login without + * a page refresh. */ submitDataSetter({ username: '', password: '', passwordrepeat: '' }) }}> |