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 isRus = locale === Locale.ru;
|
||||||
const { publicCoachDetails: { tags = [], sessionCost = 0, sessionDuration = 0, coachLanguages = [] , id, botUserId} } = expert || {};
|
const { publicCoachDetails: { tags = [], sessionCost = 0, sessionDuration = 0, coachLanguages = [] , id, botUserId} } = expert || {};
|
||||||
const [jwt] = useLocalStorage(AUTH_TOKEN_KEY, '');
|
const [jwt] = useLocalStorage(AUTH_TOKEN_KEY, '');
|
||||||
const { joinChatPerson, addListener, closeConnection } = SignalrConnection();
|
const { joinChatPerson, closeConnection } = SignalrConnection();
|
||||||
const router = useRouter();
|
const router = useRouter();
|
||||||
|
|
||||||
const onConnected = (flag: boolean)=>{
|
|
||||||
if (flag){
|
|
||||||
console.log('here');
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
addListener('onConnected', onConnected);
|
|
||||||
document?.addEventListener('show_pay_form', handleShowPayForm);
|
document?.addEventListener('show_pay_form', handleShowPayForm);
|
||||||
|
|
||||||
return () => {
|
return () => {
|
||||||
|
|
Loading…
Reference in New Issue