Skip to content

Commit f78b216

Browse files
committed
fix(network-quality): if stats aren't valid assume network is good
When we detect poor network and then proceeds to get invalid stats, the poor network indicator stays
1 parent 19e4685 commit f78b216

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

frontend/src/composables/useNetworkQuality.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ export function useNetworkQuality() {
2020

2121
const updateQuality = (stats: NetworkStats) => {
2222
if (!stats.isValid) {
23+
// If we can't get valid stats, assume network is good
24+
networkQuality.value = "good";
2325
return;
2426
}
2527

0 commit comments

Comments
 (0)