Skip to content

Commit 6e04514

Browse files
committed
hook up syncing indicator
1 parent 52baf7e commit 6e04514

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/src/hooks/useProjectStatusInfos.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,17 +42,19 @@ const getNewInfos = async (
4242

4343
// time to check network info
4444
let hasPeers = false
45+
let isGossiping = false
4546
const networkInfo = networkInfos[index]
4647
if (networkInfo) {
4748
// 1 means 'only me'
4849
// 2 or more means currently active peers
4950
hasPeers = networkInfo.current_number_of_peers > 1
51+
isGossiping = networkInfo.fetch_pool_info.num_ops_to_fetch > 0
5052
}
5153
newInfos[cellId] = {
5254
passphrase: uidToPassphrase(networkSeed),
5355
appId,
5456
hasPeers,
55-
isGossiping: true,
57+
isGossiping,
5658
hasProjectMeta,
5759
}
5860
})

0 commit comments

Comments
 (0)