mirror of
https://github.com/pagefaultgames/pokerogue.git
synced 2025-08-19 13:59:27 +02:00
Fixed tpyo
This commit is contained in:
parent
638e398fac
commit
3032262c73
@ -154,11 +154,9 @@ export class GameManager {
|
||||
* @param mode - The mode to wait for.
|
||||
* @returns A promise that resolves when the mode is set.
|
||||
*/
|
||||
waitMode(mode: UiMode): Promise<void> {
|
||||
return new Promise(async resolve => {
|
||||
await waitUntil(() => this.scene.ui?.getMode() === mode);
|
||||
return resolve();
|
||||
});
|
||||
// TODO: This is unused
|
||||
async waitMode(mode: UiMode): Promise<void> {
|
||||
await vi.waitUntil(() => this.scene.ui?.getMode() === mode);
|
||||
}
|
||||
|
||||
/**
|
||||
|
Loading…
Reference in New Issue
Block a user