LucasBassetti / react-simple-chatbot

:speech_balloon: Easy way to create conversation chats
https://lucasbassetti.com.br/react-simple-chatbot/
MIT License
1.74k stars 602 forks source link

getting duplicated text #361

Closed IbrahimLakhzine closed 1 year ago

IbrahimLakhzine commented 1 year ago

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

tatianafrank commented 1 year ago

I just installed the library and having the same issue.

IbrahimLakhzine commented 1 year ago

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

tatianafrank commented 1 year ago

thanks that worked

IbrahimLakhzine commented 1 year ago

You are welcome.