From d6ada922c88365b5187bda7c00fcb2ee3731fcc5 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Thu, 24 Sep 2020 23:20:25 +0530 Subject: [PATCH] chore: Fix wrong documentation to set a label (#1269) --- docs/channels/website-sdk.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/channels/website-sdk.md b/docs/channels/website-sdk.md index b0e1d5d5b..094710b22 100644 --- a/docs/channels/website-sdk.md +++ b/docs/channels/website-sdk.md @@ -115,7 +115,7 @@ To set the language manually, use the `setLocale` function. Please note that the labels will be set on a conversation if the user has not started a conversation. In that case, the following items will not have any effect: ```js -window.$chatwoot.addLabel('support-ticket'); +window.$chatwoot.setLabel('support-ticket'); window.$chatwoot.removeLabel('support-ticket'); ```