Improve error handling when RTCPeerConnection throws (#289)

* fix(WebRTC): improve error handling during peer connection creation and add connection error overlay

* refactor: update peer connection state handling and improve type definitions across components
This commit is contained in:
Adam Shiervani
2025-03-25 14:54:04 +01:00
committed by GitHub
parent 3b711db781
commit a3580b5465
4 changed files with 34 additions and 25 deletions

View File

@@ -36,7 +36,7 @@ export default function DashboardNavbar({
picture,
kvmName,
}: NavbarProps) {
const peerConnectionState = useRTCStore(state => state.peerConnection?.connectionState);
const peerConnectionState = useRTCStore(state => state.peerConnectionState);
const setUser = useUserStore(state => state.setUser);
const navigate = useNavigate();
const onLogout = useCallback(async () => {