From 4838562af8728c94584693417a18d814f6889169 Mon Sep 17 00:00:00 2001 From: Gabe Kangas Date: Sun, 20 Nov 2022 13:27:37 -0800 Subject: [PATCH] Fix online app state not being set during goodbye state --- web/components/stores/ClientConfigStore.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web/components/stores/ClientConfigStore.tsx b/web/components/stores/ClientConfigStore.tsx index b8ee692ea..9fe7db198 100644 --- a/web/components/stores/ClientConfigStore.tsx +++ b/web/components/stores/ClientConfigStore.tsx @@ -185,7 +185,7 @@ export const ClientConfigStore: FC = () => { return; } - if (status.online && appState.matches('ready.offline')) { + if (status.online && appState.matches('ready')) { sendEvent(AppStateEvent.Online); } else if (!status.online && !appState.matches('ready.offline')) { sendEvent(AppStateEvent.Offline);