Skip to content

Commit

Permalink
Fix action's parameter values not being applied correctly
Browse files Browse the repository at this point in the history
  • Loading branch information
niktekusho committed May 19, 2024
1 parent 1cd3eee commit f8f1ef4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/components/Rules.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -102,7 +102,7 @@ function RuleCard({

const validationResult = validateRule(existingRule);

// console.log(validationResult);
console.log("validation result for " + existingRule?.name, validationResult);

return (
<div
Expand Down Expand Up @@ -131,7 +131,7 @@ function RuleCard({
...existingRule,
name: e.target.value,
} as Rule;
console.log("updatedRule", updatedRule);
// console.log("updatedRule", updatedRule);

updateRule(updatedRule);
}}
Expand Down Expand Up @@ -255,7 +255,7 @@ function RuleCard({
...existingRule,
action: {
type: existingRule?.action.type,
characterName: pickedCharacter,
[paramName]: pickedCharacter,
},
} as Rule;
updateRule(updatedRule);
Expand Down

0 comments on commit f8f1ef4

Please sign in to comment.