LucasBassetti / react-simple-chatbot

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

Trigger property is duplicating the values #370

Open rrupnoor opened 1 year ago

rrupnoor commented 1 year ago

Describe the bug whenever steps list is added a new item, its getting duplicated in chatbox

import React, { Component } from 'react'; import ChatBot from 'react-simple-chatbot';

class App extends Component { render() { return ( <ChatBot steps={[ { id:'intro', message:'Hello. What is your name?', trigger:'intro1' } , { id:'intro1', message:'Hello', end:true }
]} /> ); }

}

export default App;

Hello is coming twice after running the application

Maxime-p commented 1 year ago

I think it's a duplicate of #346