From ed308246d7976647bb24acda641bcc21a86fdb50 Mon Sep 17 00:00:00 2001 From: Spythere Date: Thu, 2 Nov 2023 22:42:28 +0100 Subject: [PATCH] =?UTF-8?q?hotfix:=20maksymalny=20timeout=20dy=C5=BCurnych?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/store/store.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/store/store.ts b/src/store/store.ts index e6c8e4c..2157624 100644 --- a/src/store/store.ts +++ b/src/store/store.ts @@ -135,6 +135,9 @@ export const useStore = defineStore('store', { .reduce((list, apiStation) => { if (apiStation.region != state.region.id) return list; + if (apiStation.isOnline !== 1 && Date.now() - apiStation.lastSeen > 1000 * 60 * 3) + return list; + const dispatcherStatus = getDispatcherStatus(state as StoreState, apiStation); if (dispatcherStatus.statusID == DispatcherStatusID.Unknown) return list;