Skip to content

Commit

Permalink
fix: Add rcb prefix to generated chatbot id
Browse files Browse the repository at this point in the history
  • Loading branch information
tjtanjin committed Oct 7, 2024
1 parent 40c6193 commit 993eca1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/ChatBot.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ const ChatBot = ({
}) => {

// handles cases where any props are empty
const finalBotId = useMemo(() => id || generateSecureUUID(), []);
const finalBotId = useMemo(() => id || "rcb-" + generateSecureUUID(), []);
const finalFlow = (!flow || Object.keys(flow).length === 0) ? WelcomeFlow : flow;
const finalSettings = !settings ? {} : settings;
const finalStyles = !styles ? {} : styles;
Expand Down

0 comments on commit 993eca1

Please sign in to comment.