From 120222c367d0c59e7520dd06a5605dda1618c1b5 Mon Sep 17 00:00:00 2001 From: Sushmitha Sekar Date: Tue, 7 May 2024 09:25:02 +0200 Subject: [PATCH] Fix typo --- src/webchat/store/reducer.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/webchat/store/reducer.ts b/src/webchat/store/reducer.ts index bf96a277..673bed9e 100644 --- a/src/webchat/store/reducer.ts +++ b/src/webchat/store/reducer.ts @@ -36,7 +36,7 @@ export const reducer = (state = rootReducer(undefined, { type: '' }), action) => return rootReducer({ ...state, messages: [ - // To avaoid duplicate messages in chat history during re-connection, we only restore messages if the current message history is empty + // To avoid duplicate messages in chat history during re-connection, we only restore messages if the current message history is empty ...state.messages.length === 0 && action.state.messages, ...state.messages, ],