Skip to content

Commit

Permalink
add queue status check
Browse files Browse the repository at this point in the history
  • Loading branch information
Fabio Colajanni committed Jul 1, 2024
1 parent 40d9129 commit 3b047ef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/webchat/store/queue-updates/slice.ts
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ const queueUpdates = createSlice({
const { message } = action;

// temporary solution until we will get real agent status updates
if (message?.source === "agent") {
if (message?.source === "agent" && state?.isQueueActive) {
return initialState;
}
});
Expand Down

0 comments on commit 3b047ef

Please sign in to comment.