getCallBackFunction()

in ChatbotUI/src/app/dialogue-box/dialogue-box.component.ts [47:55]


  getCallBackFunction( callback : ()=>{} | undefined){
    
    let returnFunction = ()=>{this.dialogRef.close()};
    if(typeof callback === "function"){
      returnFunction = ()=>{callback();this.dialogRef.close()};
    }
    return returnFunction();

  }