Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
callMonitor._onCallEnded = () => {
if (
routerInteraction.currentPath === '/calls' &&
!hasActiveCalls(phone)
) {
routerInteraction.replace('/dialer');
}
};
}
goTo(path) {
if (path) {
if (path === '/dialer' && hasActiveCalls(phone)) {
routerInteraction.push('/calls');
} else {
routerInteraction.push(path);
}
}
},
};