diff --git a/src/App.vue b/src/App.vue index 69ec64ffa..43d59c3a0 100644 --- a/src/App.vue +++ b/src/App.vue @@ -36,7 +36,11 @@ const checkNetworkHealth = async () => { const background = theme?.primary || '#0099FF'; const color = theme?.color || 'white'; // print in console with background #8B3F98 and white text the following message: Using indexer {health.data.version} with {health.data.secondsBehind} seconds behind - console.debug(`%cUsing indexer ${health.data.version} for '${chainName}' with ${health.data.secondsBehind} seconds behind`, `background: ${background}; color: ${color};`); + console.debug( + `%cUsing indexer ${health.data.version} for '${chainName}' ` + + (health.data?.secondsBehind > 3 ? `%cwith ${health.data.secondsBehind} seconds behind` : ''), + `background: ${background}; color: ${color};`, + ); if (health.data?.secondsBehind > 3) { let behindBy = moment(health.data.secondsBehind * 1000).utc().format('HH:mm:ss'); @@ -64,7 +68,7 @@ const checkNetworkHealth = async () => { }; onMounted(async () => { - // await checkNetworkHealth(); + await checkNetworkHealth(); // On login we must set the address and record the provider getCore().events.onLoggedOut.subscribe(() => { @@ -97,6 +101,7 @@ watch( } }, ); +