Skip to content

Commit

Permalink
Update packages/playground/src/App.js
Browse files Browse the repository at this point in the history
Co-authored-by: William Wong <compulim@users.noreply.github.com>
  • Loading branch information
corinagum and compulim committed Mar 29, 2021
1 parent 0c6b9a9 commit 88b5230
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion packages/playground/src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -199,7 +199,9 @@ function App() {
}, [handleUseMockBot]);

// Feel free to change the text to whatever will help you dev faster
const handleCurrentCommandClick = () => {
const handleCurrentCommandClick = useCallback(() => {
store.dispatch({ type: 'WEB_CHAT/SEND_MESSAGE', payload: { text: 'suggested-actions' } });
}, [store.dispatch]);
store.dispatch({ type: 'WEB_CHAT/SEND_MESSAGE', payload: { text: 'suggested-actions' } });
};

Expand Down

0 comments on commit 88b5230

Please sign in to comment.