mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-10-31 03:08:29 +08:00
fixed word adding not randomising custom words
This commit is contained in:
parent
67ef58ba4d
commit
299a587efc
1 changed files with 2 additions and 2 deletions
|
|
@ -956,11 +956,11 @@ export function addWord() {
|
|||
|
||||
if (
|
||||
Config.mode === "custom" &&
|
||||
CustomText.isWordRandom &&
|
||||
(CustomText.isWordRandom || CustomText.isTimeRandom) &&
|
||||
wordset.length < 3
|
||||
) {
|
||||
randomWord = wordset[Math.floor(Math.random() * wordset.length)];
|
||||
} else if (Config.mode == "custom" && !CustomText.isWordRandom) {
|
||||
} else if (Config.mode == "custom" && (!CustomText.isWordRandom && !CustomText.isTimeRandom)) {
|
||||
randomWord = CustomText.text[words.length];
|
||||
} else {
|
||||
while (
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue