diff --git a/play.pokemonshowdown.com/src/client-main.ts b/play.pokemonshowdown.com/src/client-main.ts
index 0422020cb..c1f8aa8e6 100644
--- a/play.pokemonshowdown.com/src/client-main.ts
+++ b/play.pokemonshowdown.com/src/client-main.ts
@@ -2655,7 +2655,7 @@ export const PS = new class extends PSModel {
otherButtons?: preact.ComponentChildren, parentElem?: HTMLElement,
} = {}) {
opts.cancelButton ??= 'Cancel';
- return new Promise(resolve => {
+ return new Promise(resolve => {
this.join(`popup-${this.popups.length}` as RoomID, {
args: { message, okValue: true, cancelValue: false, callback: resolve, ...opts, parentElem: null },
parentElem: opts.parentElem,
@@ -2664,14 +2664,14 @@ export const PS = new class extends PSModel {
}
prompt(message: string, opts: {
defaultValue?: string, okButton?: string, cancelButton?: string, type?: 'text' | 'password' | 'number' | 'numeric',
- otherButtons?: preact.ComponentChildren, parentElem?: HTMLElement | null,
+ label?: string, otherButtons?: preact.ComponentChildren, parentElem?: HTMLElement | null,
} = {}): Promise {
opts.cancelButton ??= 'Cancel';
return new Promise(resolve => {
this.join(`popup-${this.popups.length}` as RoomID, {
args: {
message, value: opts.defaultValue || '',
- okValue: true, cancelValue: false, callback: resolve, ...opts, parentElem: null,
+ okValue: true, cancelValue: null, callback: resolve, ...opts, parentElem: null,
},
parentElem: opts.parentElem,
});
diff --git a/play.pokemonshowdown.com/src/panel-mainmenu.tsx b/play.pokemonshowdown.com/src/panel-mainmenu.tsx
index f7ff7f5ae..ca1196dd4 100644
--- a/play.pokemonshowdown.com/src/panel-mainmenu.tsx
+++ b/play.pokemonshowdown.com/src/panel-mainmenu.tsx
@@ -1063,7 +1063,7 @@ export class TeamForm extends preact.Component<{
-
: