remove on connected
This commit is contained in:
parent
87b14e8716
commit
2da77f7347
|
@ -38,17 +38,11 @@ export const ExpertCard: FC<ExpertDetailsProps> = ({ expert, locale, expertId })
|
|||
const isRus = locale === Locale.ru;
|
||||
const { publicCoachDetails: { tags = [], sessionCost = 0, sessionDuration = 0, coachLanguages = [] , id, botUserId} } = expert || {};
|
||||
const [jwt] = useLocalStorage(AUTH_TOKEN_KEY, '');
|
||||
const { joinChatPerson, addListener, closeConnection } = SignalrConnection();
|
||||
const { joinChatPerson, closeConnection } = SignalrConnection();
|
||||
const router = useRouter();
|
||||
|
||||
const onConnected = (flag: boolean)=>{
|
||||
if (flag){
|
||||
console.log('here');
|
||||
}
|
||||
}
|
||||
|
||||
useEffect(() => {
|
||||
addListener('onConnected', onConnected);
|
||||
document?.addEventListener('show_pay_form', handleShowPayForm);
|
||||
|
||||
return () => {
|
||||
|
|
Loading…
Reference in New Issue