diff --git a/ts/user.ts b/ts/user.ts index ac49b7e..8fef411 100644 --- a/ts/user.ts +++ b/ts/user.ts @@ -52,6 +52,9 @@ window.modals = {} as Modals; }; const resetButton = document.getElementById("modal-login-pwr"); resetButton.onclick = () => { + const usernameInput = document.getElementById("login-user") as HTMLInputElement; + const input = document.getElementById("pwr-address") as HTMLInputElement; + input.value = usernameInput.value; window.modals.login.close(); window.modals.pwr.show(); }