mirror of
https://github.com/monkeytypegame/monkeytype.git
synced 2025-09-10 16:48:40 +08:00
fix: server sometimes rejecting valid funbox combinations
funbox data needs to be moved to the shared package
This commit is contained in:
parent
d448af8d6f
commit
edbb4d4451
1 changed files with 4 additions and 4 deletions
|
@ -122,9 +122,9 @@ export function areFunboxesCompatible(funboxesString: string): boolean {
|
|||
f.properties?.some((fp) => fp.startsWith("toPush:")) ??
|
||||
f.frontendFunctions?.includes("pullSection")
|
||||
).length <= 1;
|
||||
const oneApplyCSSMax =
|
||||
funboxesToCheck.filter((f) => f.frontendFunctions?.includes("applyCSS"))
|
||||
.length <= 1;
|
||||
// const oneApplyCSSMax =
|
||||
// funboxesToCheck.filter((f) => f.frontendFunctions?.includes("applyCSS"))
|
||||
// .length <= 1; //todo: move all funbox stuff to the shared package, this is ok to remove for now
|
||||
const onePunctuateWordMax =
|
||||
funboxesToCheck.filter((f) =>
|
||||
f.frontendFunctions?.includes("punctuateWord")
|
||||
|
@ -174,7 +174,7 @@ export function areFunboxesCompatible(funboxesString: string): boolean {
|
|||
canSpeak &&
|
||||
hasLanguageToSpeak &&
|
||||
oneToPushOrPullSectionMax &&
|
||||
oneApplyCSSMax &&
|
||||
// oneApplyCSSMax &&
|
||||
onePunctuateWordMax &&
|
||||
oneCharCheckerMax &&
|
||||
oneCharReplacerMax &&
|
||||
|
|
Loading…
Add table
Reference in a new issue