@@ -474,8 +474,9 @@ const Webchat = forwardRef<WebchatRef | null, WebchatProps>((props, ref) => {
474
474
https://stackoverflow.com/questions/37949981/call-child-method-from-parent
475
475
*/
476
476
477
- const updateSessionWithUser = ( userToUpdate : any ) =>
477
+ const updateSessionWithUser = ( userToUpdate : any ) => {
478
478
updateSession ( merge ( webchatState . session , { user : userToUpdate } ) )
479
+ }
479
480
480
481
useImperativeHandle ( ref , ( ) => ( {
481
482
addBotResponse : ( { response, session, lastRoutePath } ) => {
@@ -501,8 +502,8 @@ const Webchat = forwardRef<WebchatRef | null, WebchatProps>((props, ref) => {
501
502
const isHandoff = action . startsWith ( BotonicAction . CreateCase )
502
503
if ( isHandoff && isDev ) {
503
504
addMessageComponent ( < Handoff /> )
505
+ // TODO: Review after minimum time, handoff component disappears because of an empty message component
504
506
}
505
- // TODO: Review after minimum time, handoff component disappears because of an empty message component
506
507
updateHandoffState ( {
507
508
...webchatState . handoffState ,
508
509
isHandoff,
@@ -756,7 +757,7 @@ const Webchat = forwardRef<WebchatRef | null, WebchatProps>((props, ref) => {
756
757
{ webchatState . isPersistentMenuOpen && (
757
758
< DarkenBackground component = { persistentMenu ( ) } />
758
759
) }
759
-
760
+ { /* TODO: Review this condition */ }
760
761
{ ! webchatState . handoffState . isHandoff && userInputEnabled && (
761
762
< InputPanel
762
763
persistentMenu = { props . persistentMenu }
0 commit comments