From c30b4c46e00ab16edfb46ec047dc4c9a62627f01 Mon Sep 17 00:00:00 2001 From: Hamcha Date: Mon, 23 Sep 2019 18:05:26 +0200 Subject: [PATCH] nvm fixed it --- src/store/network/index.ts | 2 ++ src/store/network/types.ts | 3 +++ 2 files changed, 5 insertions(+) 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 {