From 21f5a21cae5ceda82bd861dc21ec32df09f5f843 Mon Sep 17 00:00:00 2001 From: PhilReact Date: Wed, 17 Jan 2024 02:21:20 +0200 Subject: [PATCH] remove commented --- .../beginner-tour/sync-indicator.js | 34 ++----------------- 1 file changed, 2 insertions(+), 32 deletions(-) diff --git a/core/src/components/beginner-tour/sync-indicator.js b/core/src/components/beginner-tour/sync-indicator.js index 390f403c..46804c74 100644 --- a/core/src/components/beginner-tour/sync-indicator.js +++ b/core/src/components/beginner-tour/sync-indicator.js @@ -175,20 +175,7 @@ class SyncIndicator extends connect(store)(LitElement) { } else if(state.app.nodeStatus && state.app.nodeStatus.syncPercent === 100 && state.app.nodeStatus.syncPercent !== this.syncPercentage){ this.syncPercentage = state.app.nodeStatus.syncPercent; this.isSynchronizing = false; - // if ( - // this.isBehind === null - // ) { - // this.isBehind = false; - // this.blocksBehind = 0; - // if (!this.seenWelcomeSync) { - // this.dispatchEvent( - // new CustomEvent('open-welcome-modal-sync', { - // bubbles: true, - // composed: true, - // }) - // ); - // } - // } + } else if ( state.app.nodeStatus ) { @@ -199,24 +186,7 @@ class SyncIndicator extends connect(store)(LitElement) { if (state.app.nodeStatus.syncPercent !== 100) { this.isSynchronizing = true; } - // else { - // this.isSynchronizing = false; - // } - // if ( - // this.isBehind === null && - // state.app.nodeStatus.syncPercent === 100 - // ) { - // this.isBehind = false; - // this.blocksBehind = 0; - // if (!this.seenWelcomeSync) { - // this.dispatchEvent( - // new CustomEvent('open-welcome-modal-sync', { - // bubbles: true, - // composed: true, - // }) - // ); - // } - // } else + if ( !this.interval && this.isBehind === null &&