From 26fa8f2678dc6e18e88000cd67802030fd492005 Mon Sep 17 00:00:00 2001 From: yanguoyu <841185308@qq.com> Date: Tue, 21 Nov 2023 16:21:45 +0800 Subject: [PATCH] fix: Add annotation --- packages/neuron-ui/src/utils/getSyncStatus.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/neuron-ui/src/utils/getSyncStatus.ts b/packages/neuron-ui/src/utils/getSyncStatus.ts index 9c6879e92d..9067d65a9f 100644 --- a/packages/neuron-ui/src/utils/getSyncStatus.ts +++ b/packages/neuron-ui/src/utils/getSyncStatus.ts @@ -23,7 +23,10 @@ export const getSyncStatus = ({ networkID: string }) => { if ( + // !timestamp10MinAgo means start sync for the first time (!timestamp10MinAgo && bestKnownBlockNumber >= 0) || + // prevUrl for change the network remote(change network or eidt the network) + // prevNetworkID for change the network, sometime change network the remote is same. light client mainnet -> testnet (((prevUrl && url !== prevUrl) || (prevNetworkID && prevNetworkID !== networkID)) && bestKnownBlockNumber >= 0) ) { timestamp10MinAgo = currentTimestamp