diff --git a/src/test/java/com/flowingcode/vaadin/addons/chatassistant/ChatAssistantDemo.java b/src/test/java/com/flowingcode/vaadin/addons/chatassistant/ChatAssistantDemo.java index 712ef39..11d132d 100644 --- a/src/test/java/com/flowingcode/vaadin/addons/chatassistant/ChatAssistantDemo.java +++ b/src/test/java/com/flowingcode/vaadin/addons/chatassistant/ChatAssistantDemo.java @@ -52,12 +52,11 @@ public ChatAssistantDemo() { chatAssistant.sendMessage(Message.builder().content("Hello, I am here to assist you") .sender(Sender.builder().name("Assistant").id("1").avatar("chatbot.png").build()).build()); chatAssistant.toggle(); - chatAssistant.addChatSentListener( - ev -> { - if (ev.isRight()) { - Notification.show(ev.getMessage()); - } - }); + chatAssistant.addChatSentListener(ev -> { + if (ev.isRight()) { + Notification.show(ev.getMessage()); + } + }); add(message, chat, chatAssistant); }