Skip to content

Commit

Permalink
refactor: belief updated
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-elena committed Sep 12, 2023
1 parent 9a877b8 commit 50d129f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/component/event/bdi/NewBelief.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ function NewBelief(props) {
const functor= beliefEvent.functor
const belief = beliefEvent.literal
const source = beliefEvent.source.value ? beliefEvent.source.value : ""
const beliefDeed = props.log.slice(props.log.indexOf(props.event)).find(e => e.message.type === "ExecutedDeed" && e.message.event.deedInfo.type.includes("Bel") && e.message.event.deedInfo.term === belief);
const beliefDeed = props.log.slice(props.log.indexOf(props.event)).find(e => e.message.type === "ExecutedDeed" && e.message.event.deedInfo.type.includes("Bel") && e.message.event.deedInfo.term.includes(functor));

let description
let reason
Expand Down

0 comments on commit 50d129f

Please sign in to comment.