Skip to content

Commit

Permalink
oops
Browse files Browse the repository at this point in the history
  • Loading branch information
MDMCK10 committed Nov 11, 2024
1 parent 41bcef6 commit 13e8dfe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/ts/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -769,7 +769,7 @@ elements.chatinput.addEventListener('keypress', (e) => {
elements.changeUsernameBtn.addEventListener('click', () => {
let oldname = w.username.nodeName === undefined ? w.username : w.username.innerText;
let newname = prompt(TheI18n.GetString(I18nStringKey.kVMPrompts_EnterNewUsernamePrompt), oldname);
if (newname === w.username) return;
if (newname === oldname) return;
VM?.rename(newname);
});
elements.takeTurnBtn.addEventListener('click', () => {
Expand Down

0 comments on commit 13e8dfe

Please sign in to comment.