Skip to content

Commit

Permalink
fix: merging configs instead of choosing one or the other
Browse files Browse the repository at this point in the history
  • Loading branch information
aleksandernsilva authored Feb 26, 2024
1 parent 7ec7b35 commit 97dea59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion packages/livechat/src/helpers/canRenderMessage.ts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ export const canRenderSystemMessage = (message: { t: string }) => {
const { config, iframe } = store.state;
const configHiddenSystemMessages = config.settings.hiddenSystemMessages || [];
const localHiddenSystemMessages = iframe.hiddenSystemMessages || [];
const hiddenSystemMessages = localHiddenSystemMessages.length ? localHiddenSystemMessages : configHiddenSystemMessages;
const hiddenSystemMessages = [...configHiddenSystemMessages, ...localHiddenSystemMessages];

Check failure on line 23 in packages/livechat/src/helpers/canRenderMessage.ts

View workflow job for this annotation

GitHub Actions / 🔎 Code Check / Code Lint

Delete `·`

return !hiddenSystemMessages.includes(message.t as LivechatSytemMessageType);
};
Expand Down

0 comments on commit 97dea59

Please sign in to comment.