mirror of
https://github.com/luckfox-eng29/kvm.git
synced 2026-06-17 20:07:14 +02:00
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:
@@ -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 () => {
|
||||
|
||||
Reference in New Issue
Block a user