Skip to content

Commit

Permalink
Revert "End call redirect issue"
Browse files Browse the repository at this point in the history
  • Loading branch information
AykhanAhmadli authored Nov 21, 2024
1 parent e9cdcdf commit be0af8e
Showing 1 changed file with 0 additions and 4 deletions.
4 changes: 0 additions & 4 deletions packages/telemed-intake/app/src/components/VideoControls.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,13 +11,10 @@ import { CallSettingsTooltip } from './CallSettingsTooltip';
import { useVideoCallStore } from '../features/video-call';
import { otherColors } from '../IntakeThemeProvider';
import { CallSettings } from './CallSettingsDialog';
import { useNavigate } from 'react-router-dom';
import { IntakeFlowPageRoute } from 'src/App';

export const VideoControls: FC = () => {
const { toggleVideo, isVideoEnabled } = useLocalVideo();
const { muted, toggleMute } = useToggleLocalMute();
const navigate = useNavigate();

const meetingManager = useMeetingManager();
const [isSettingsOpen, setIsSettingsOpen] = useState(false);
Expand Down Expand Up @@ -49,7 +46,6 @@ export const VideoControls: FC = () => {
const disconnect = async (): Promise<void> => {
await cleanup();
useVideoCallStore.setState({ meetingData: null });
navigate(IntakeFlowPageRoute.PatientPortal.path);
};

return (
Expand Down

0 comments on commit be0af8e

Please sign in to comment.