LucasBassetti/react-simple-chatbot

getting duplicated text

Closed this issue · 4 comments

I am getting duplicates text when using options

this is the steps I have used:

const steps=[
{
id: '1',
message: 'Those Are The Services That I am offering ,Please Choose A Service?',
trigger: '2',
},
{
id: '2',
options: [
{value:"Web Developement" , label: 'Web Developement', trigger: '3' },
{value:"Data Science", label: 'Data Science', trigger: '4' },
{value:"AI & Deep Learning", label: 'AI & Deep Learning', trigger: '4' },
],
},
{
id: '3',
message: 'Wrong answer, try again.',

 },
 { 
   id: '4',
   message: 'Awesome! You are a telepath!',

 },
];

Bd32IFGAY9

I just installed the library and having the same issue.

For the rendering on index.js you can remove the strict mode for rendering and use a normal rendering worked for me.

thanks that worked

You are welcome.