From 79be3bff3705d570e8d728af21ab7674888dbc31 Mon Sep 17 00:00:00 2001 From: nzambello Date: Wed, 17 Apr 2024 11:10:43 +0300 Subject: [PATCH] fix: sending position event, cleanup --- src/components/MemoriWidget/MemoriWidget.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/MemoriWidget/MemoriWidget.tsx b/src/components/MemoriWidget/MemoriWidget.tsx index c4403949..be9c1773 100644 --- a/src/components/MemoriWidget/MemoriWidget.tsx +++ b/src/components/MemoriWidget/MemoriWidget.tsx @@ -965,6 +965,8 @@ const MemoriWidget = ({ ) { setSessionId(session.sessionID); + if (position) applyPosition(position, session.sessionID); + setLoading(false); return { dialogState: session.currentState, @@ -1244,7 +1246,6 @@ const MemoriWidget = ({ const session = sessionID ?? sessionId; const dialogState = state ?? currentDialogState; - console.log('sendDateChangedEvent', dialogState); if (!session || !memori.needsDateTime || dialogState?.hints?.length) { return; }