diff --git a/src/store/network/index.ts b/src/store/network/index.ts index 9a0ca12..0eaf023 100644 --- a/src/store/network/index.ts +++ b/src/store/network/index.ts @@ -10,6 +10,8 @@ const namespaced = true; export const state: NetworkState = { peerType: "none", + connectionStatus: null, + peer: null, chatLog: [] }; diff --git a/src/store/network/types.ts b/src/store/network/types.ts index 54adbaf..6b85cb8 100644 --- a/src/store/network/types.ts +++ b/src/store/network/types.ts @@ -25,6 +25,9 @@ export interface SharedNetworkState { export interface NoNetworkState extends SharedNetworkState { peerType: "none"; + connectionStatus: null; + connectionError?: Error; + peer: null; } export interface ClientNetworkState extends SharedNetworkState {