fix: server sometimes rejecting valid funbox combinations

funbox data needs to be moved to the shared package
This commit is contained in:
Miodec 2024-11-04 10:14:09 +01:00
parent d448af8d6f
commit edbb4d4451

View file

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