mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-02-28 16:54:04 +08:00
updated logic to avoid double update on test restart
This commit is contained in:
parent
06d797bd99
commit
e1ab1b676c
1 changed files with 2 additions and 2 deletions
|
@ -138,8 +138,8 @@ export function updateActiveElement(
|
|||
});
|
||||
}
|
||||
} catch (e) {}
|
||||
if (initial || shouldUpdateWordsInputPosition()) {
|
||||
updateWordsInputPosition(initial);
|
||||
if (!initial && shouldUpdateWordsInputPosition()) {
|
||||
updateWordsInputPosition();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue