Skip to content

Commit

Permalink
refactor: refactor intention unifier
Browse files Browse the repository at this point in the history
  • Loading branch information
yan-elena committed Oct 4, 2023
1 parent bfd9079 commit 49e9e17
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/component/event/jason/intentionEvent/IntentionCreated.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,12 +4,13 @@ import Event from "../../Event";
function IntentionCreated(props) {

const im = props.event.message.event.intentionInfo.intendedMeansInfo
const unifier = im[0].unifier

return (
<div>
<Event type={props.event.message.type.replace(/\B([A-Z])\B/g, ' $1')}
description={props.event.message.log}
info={im.length > 0 && im[0].unifier ? "Unifier: " + im[0].unifier : ""}
info={im.length > 0 && unifier && unifier !== "{}" ? "Unifier: " + unifier : ""}
timestamp={props.event.timestamp} filter={props.filter}/>
</div>
)
Expand Down

0 comments on commit 49e9e17

Please sign in to comment.