diff options
author | Miodec <[email protected]> | 2024-11-04 10:14:09 +0100 |
---|---|---|
committer | Miodec <[email protected]> | 2024-11-04 10:46:40 +0100 |
commit | edbb4d44516b4055fbc64b521f303fbff0bee58c (patch) | |
tree | 4eaa4afdc07f9e3b52b9042684927bfaee15f684 | |
parent | d448af8d6f08ec3839213802e98890d8631b4014 (diff) | |
download | monkeytype-edbb4d44516b4055fbc64b521f303fbff0bee58c.tar.gz monkeytype-edbb4d44516b4055fbc64b521f303fbff0bee58c.zip |
fix: server sometimes rejecting valid funbox combinations
funbox data needs to be moved to the shared package
-rw-r--r-- | backend/src/utils/validation.ts | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/backend/src/utils/validation.ts b/backend/src/utils/validation.ts index e5ef947e4..401f4bb24 100644 --- a/backend/src/utils/validation.ts +++ b/backend/src/utils/validation.ts @@ -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 && |