Skip to content

Commit

Permalink
Fix typo
Browse files Browse the repository at this point in the history
  • Loading branch information
sushmi21 authored May 7, 2024
1 parent 4717b2c commit 120222c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webchat/store/reducer.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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,
],
Expand Down

0 comments on commit 120222c

Please sign in to comment.