From 2aa846b8e5bf1e413a3243d713c684a97201a48e Mon Sep 17 00:00:00 2001 From: NicolasCantu Date: Wed, 12 Mar 2025 15:44:41 +0100 Subject: [PATCH] [bug] don't add empty states to states we need to monitor --- src/services/service.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/services/service.ts b/src/services/service.ts index 025bb72..446166b 100755 --- a/src/services/service.ts +++ b/src/services/service.ts @@ -15,6 +15,7 @@ const BASEURL = `https://demo.4nkweb.com`; const BOOTSTRAPURL = [`${BASEURL}/ws/`]; const STORAGEURL = `${BASEURL}/storage` const DEFAULTAMOUNT = 1000n; +const EMPTY32BYTES = String('').padStart(64, '0'); export default class Services { private static initializing: Promise | null = null; @@ -1073,8 +1074,8 @@ export default class Services { let new_states = []; let roles = []; for (const state of process.states) { + if (!state.state_id || state.state_id === EMPTY32BYTES) { continue; } if (!this.lookForStateId(existing, state.state_id)) { - new_states.push(state.state_id); roles.push(state.roles); }