fixed word adding not randomising custom words

This commit is contained in:
Miodec 2021-06-17 17:44:12 +01:00
parent 67ef58ba4d
commit 299a587efc

View file

@ -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 (