Skip to content

Commit edbb4d4

Browse files
committed
fix: server sometimes rejecting valid funbox combinations
funbox data needs to be moved to the shared package
1 parent d448af8 commit edbb4d4

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

backend/src/utils/validation.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -122,9 +122,9 @@ export function areFunboxesCompatible(funboxesString: string): boolean {
122122
f.properties?.some((fp) => fp.startsWith("toPush:")) ??
123123
f.frontendFunctions?.includes("pullSection")
124124
).length <= 1;
125-
const oneApplyCSSMax =
126-
funboxesToCheck.filter((f) => f.frontendFunctions?.includes("applyCSS"))
127-
.length <= 1;
125+
// const oneApplyCSSMax =
126+
// funboxesToCheck.filter((f) => f.frontendFunctions?.includes("applyCSS"))
127+
// .length <= 1; //todo: move all funbox stuff to the shared package, this is ok to remove for now
128128
const onePunctuateWordMax =
129129
funboxesToCheck.filter((f) =>
130130
f.frontendFunctions?.includes("punctuateWord")
@@ -174,7 +174,7 @@ export function areFunboxesCompatible(funboxesString: string): boolean {
174174
canSpeak &&
175175
hasLanguageToSpeak &&
176176
oneToPushOrPullSectionMax &&
177-
oneApplyCSSMax &&
177+
// oneApplyCSSMax &&
178178
onePunctuateWordMax &&
179179
oneCharCheckerMax &&
180180
oneCharReplacerMax &&

0 commit comments

Comments
 (0)