mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-11-10 22:22:21 +08:00
chore: stop show if already open
This commit is contained in:
parent
e1878b91d2
commit
3f2cfca361
1 changed files with 1 additions and 0 deletions
|
|
@ -137,6 +137,7 @@ export default class AnimatedModal {
|
|||
async show(options?: ShowHideOptions): Promise<void> {
|
||||
// eslint-disable-next-line no-async-promise-executor
|
||||
return new Promise(async (resolve) => {
|
||||
if (this.open) return resolve();
|
||||
Skeleton.append(this.wrapperId, this.skeletonAppendParent);
|
||||
|
||||
if (!this.setupRan) {
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue