merchant-backoffice

ZZZ: Inactive/Deprecated
Log | Files | Refs | Submodules | README

commit 82b3e74b6edc7008760f1fd9df8f8330748a2e63
parent 4ef6d6aaea399296cbd411b4b0d15162c9883e28
Author: ng <>
Date:   Sun, 23 Oct 2022 02:59:42 +0200

fix: 🐛 Fix logout->re-login typerror

Diffstat:
Mpackages/bank/src/pages/home/index.tsx | 7++++++-
1 file changed, 6 insertions(+), 1 deletion(-)

diff --git 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: '' }) }}>