Skip to content

Commit

Permalink
refactor: new perception
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-elena committed Sep 11, 2023
1 parent de3eecd commit 23fa6c1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/component/event/bdi/NewBelief.js
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ function NewBelief(props) {
break;
case "percept":
const percept = props.log.slice(props.log.indexOf(props.event)).find(e => e.message.type === "NewPercept" && e.message.event.perceptInfo.functor === belief).message.event.perceptInfo;
reason = " because I perceived it from " + percept.artifactName
info = "Percept type: " + percept.perceptType
reason = " because I perceived it" + (percept.artifactName ? " from " + percept.artifactName : "")
info = percept.perceptType ? "Percept type: " + percept.perceptType : ""
agentState.belief.percept.push(functor)
break;
case "":
Expand Down

0 comments on commit 23fa6c1

Please sign in to comment.