remove on connected

This commit is contained in:
dzfelix 2024-12-26 14:19:21 +03:00
parent 87b14e8716
commit 2da77f7347
1 changed files with 1 additions and 7 deletions

View File

@ -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 () => {