diff options
author | ng <�> | 2022-10-23 02:59:42 +0200 |
---|---|---|
committer | ng <�> | 2022-10-23 02:59:42 +0200 |
commit | 82b3e74b6edc7008760f1fd9df8f8330748a2e63 (patch) | |
tree | 83162e9682c30f18b605ea402ccd4acc9f5dbfa6 /packages | |
parent | 4ef6d6aaea399296cbd411b4b0d15162c9883e28 (diff) | |
download | merchant-backoffice-82b3e74b6edc7008760f1fd9df8f8330748a2e63.tar.gz merchant-backoffice-82b3e74b6edc7008760f1fd9df8f8330748a2e63.tar.bz2 merchant-backoffice-82b3e74b6edc7008760f1fd9df8f8330748a2e63.zip |
fix: 🐛 Fix logout->re-login typerror
Diffstat (limited to 'packages')
-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: '' }) }}> |