== -> === in bail-out and keymap-layouts

This commit is contained in:
Evan 2023-02-25 22:17:35 -06:00
parent 1de8f916b3
commit 175acb5ea4
2 changed files with 4 additions and 4 deletions

View file

@ -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"
);
}

View file

@ -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, " "),