Skip to content

Commit

Permalink
fix: sending position event, cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
nzambello committed Apr 17, 2024
1 parent 02766ac commit 79be3bf
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/components/MemoriWidget/MemoriWidget.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -965,6 +965,8 @@ const MemoriWidget = ({
) {
setSessionId(session.sessionID);

if (position) applyPosition(position, session.sessionID);

setLoading(false);
return {
dialogState: session.currentState,
Expand Down Expand Up @@ -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;
}
Expand Down

0 comments on commit 79be3bf

Please sign in to comment.