Fix online app state not being set during goodbye state

This commit is contained in:
Gabe Kangas
2022-11-20 13:27:37 -08:00
parent 5ca8271c6e
commit 4838562af8

View File

@@ -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);