From 49e9e17396d15a7b5d74fadf18ceebfb8ab9384c Mon Sep 17 00:00:00 2001 From: Elena Yan Date: Wed, 4 Oct 2023 07:35:46 +0200 Subject: [PATCH] refactor: refactor intention unifier --- src/component/event/jason/intentionEvent/IntentionCreated.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/component/event/jason/intentionEvent/IntentionCreated.js b/src/component/event/jason/intentionEvent/IntentionCreated.js index 748b55d..95a7b0e 100644 --- a/src/component/event/jason/intentionEvent/IntentionCreated.js +++ b/src/component/event/jason/intentionEvent/IntentionCreated.js @@ -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 (
0 && im[0].unifier ? "Unifier: " + im[0].unifier : ""} + info={im.length > 0 && unifier && unifier !== "{}" ? "Unifier: " + unifier : ""} timestamp={props.event.timestamp} filter={props.filter}/>
)