mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2024-11-10 17:04:49 +08:00
== -> === in bail-out and keymap-layouts
This commit is contained in:
parent
1de8f916b3
commit
175acb5ea4
2 changed files with 4 additions and 4 deletions
|
@ -9,18 +9,18 @@ function canBailOut(): boolean {
|
|||
(Config.mode === "custom" && CustomTextState.isCustomTextLong() === true) ||
|
||||
(Config.mode === "custom" &&
|
||||
CustomText.isWordRandom &&
|
||||
(CustomText.word >= 5000 || CustomText.word == 0)) ||
|
||||
(CustomText.word >= 5000 || CustomText.word === 0)) ||
|
||||
(Config.mode === "custom" &&
|
||||
!CustomText.isWordRandom &&
|
||||
!CustomText.isTimeRandom &&
|
||||
CustomText.text.length >= 5000) ||
|
||||
(Config.mode === "custom" &&
|
||||
CustomText.isTimeRandom &&
|
||||
(CustomText.time >= 3600 || CustomText.time == 0)) ||
|
||||
(CustomText.time >= 3600 || CustomText.time === 0)) ||
|
||||
(Config.mode === "words" && Config.words >= 5000) ||
|
||||
Config.words === 0 ||
|
||||
(Config.mode === "time" && (Config.time >= 3600 || Config.time === 0)) ||
|
||||
Config.mode == "zen"
|
||||
Config.mode === "zen"
|
||||
);
|
||||
}
|
||||
|
||||
|
|
|
@ -35,7 +35,7 @@ function update(layouts: MonkeyTypes.Layouts): void {
|
|||
},
|
||||
});
|
||||
Object.keys(layouts).forEach((layout) => {
|
||||
if (layout.toString() != "default") {
|
||||
if (layout.toString() !== "default") {
|
||||
subgroup.list.push({
|
||||
id: "changeKeymapLayout" + capitalizeFirstLetterOfEachWord(layout),
|
||||
display: layout.replace(/_/g, " "),
|
||||
|
|
Loading…
Reference in a new issue