From 3000a595c8817af7a38abccf73213673ac95737f Mon Sep 17 00:00:00 2001 From: Chris Tremblay Date: Mon, 6 Nov 2023 17:34:03 -0500 Subject: [PATCH] Update index.js --- .../petstoreapp/soulmachines-react-app/src/store/sm/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/petstore/petstoreapp/soulmachines-react-app/src/store/sm/index.js b/petstore/petstoreapp/soulmachines-react-app/src/store/sm/index.js index 2ff1b457..d4d1304d 100644 --- a/petstore/petstoreapp/soulmachines-react-app/src/store/sm/index.js +++ b/petstore/petstoreapp/soulmachines-react-app/src/store/sm/index.js @@ -618,7 +618,7 @@ export const createScene = createAsyncThunk('sm/createScene', async (_, thunk) = export const sendTextMessage = createAsyncThunk('sm/sendTextMessage', async ({ text }, thunk) => { if (text === '') return thunk.rejectWithValue('submitted empty string!'); if (scene !== null && persona !== null) { - persona.conversationSetVariables({ url: '${window.parent.location}'}); + persona.conversationSetVariables({ url: `${window.parent.location}` }); console.log(`${text} ${window.parent.location}`); persona.conversationSend(`${text} ${window.parent.location}`); return thunk.dispatch(actions.addConversationResult({ @@ -825,7 +825,7 @@ const smSlice = createSlice({ sendEvent: (state, { payload }) => { const { eventName, payload: eventPayload, kind } = payload; if (scene && persona) { - persona.conversationSetVariables({ url: '${window.parent.location}'}); + persona.conversationSetVariables({ url: `${window.parent.location}` }); console.log(`${eventName} ${eventPayload} ${window.parent.location}`); persona.conversationSend(eventName, eventPayload || {}, { kind: kind || 'event' }); }