mirror of
https://github.com/formbricks/formbricks.git
synced 2026-05-24 16:58:50 -05:00
fix: typo
This commit is contained in:
+2
-2
@@ -18,7 +18,7 @@ import {
|
||||
} from "@formbricks/lib/surveyLogic/utils";
|
||||
import {
|
||||
TConditionGroup,
|
||||
TDyanmicLogicField,
|
||||
TDynamicLogicField,
|
||||
TRightOperand,
|
||||
TSingleCondition,
|
||||
TSurvey,
|
||||
@@ -132,7 +132,7 @@ export function LogicEditorConditions({
|
||||
handleUpdateCondition(condition.id, {
|
||||
leftOperand: {
|
||||
value,
|
||||
type: option?.meta?.type as TDyanmicLogicField,
|
||||
type: option?.meta?.type as TDynamicLogicField,
|
||||
},
|
||||
operator: "isSkipped",
|
||||
rightOperand: undefined,
|
||||
|
||||
@@ -228,7 +228,13 @@ export const Survey = ({
|
||||
if (currQuesTemp.logic && currQuesTemp.logic.length > 0) {
|
||||
for (const logic of currQuesTemp.logic) {
|
||||
if (
|
||||
evaluateLogic(localSurvey, localResponseData, currentVariables, logic.conditions, selectedLanguage)
|
||||
evaluateLogic(
|
||||
localSurvey,
|
||||
localResponseData,
|
||||
calculationResults,
|
||||
logic.conditions,
|
||||
selectedLanguage
|
||||
)
|
||||
) {
|
||||
const { jumpTarget, requiredQuestionIds, calculations } = performActions(
|
||||
localSurvey,
|
||||
|
||||
@@ -299,7 +299,7 @@ const ZDynamicLogicFieldValue = z.union([ZDynamicQuestion, ZDynamicVariable, ZDy
|
||||
});
|
||||
|
||||
export type TSurveyLogicConditionsOperator = z.infer<typeof ZSurveyLogicConditionsOperator>;
|
||||
export type TDyanmicLogicField = z.infer<typeof ZDynamicLogicField>;
|
||||
export type TDynamicLogicField = z.infer<typeof ZDynamicLogicField>;
|
||||
export type TActionObjective = z.infer<typeof ZActionObjective>;
|
||||
export type TActionTextVariableCalculateOperator = z.infer<typeof ZActionTextVariableCalculateOperator>;
|
||||
export type TActionNumberVariableCalculateOperator = z.infer<typeof ZActionNumberVariableCalculateOperator>;
|
||||
|
||||
Reference in New Issue
Block a user