Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit 5296e1a

Browse files
committedJun 1, 2023
fmt
1 parent d757529 commit 5296e1a

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed
 

‎site/jest.setup.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ jest.mock("contexts/useProxyLatency", () => ({
3535
}, {} as Record<string, ProxyLatencyReport>)
3636
}, [proxies])
3737

38-
return {proxyLatencies, refetch: jest.fn() }
38+
return { proxyLatencies, refetch: jest.fn() }
3939
},
4040
}))
4141

‎site/src/contexts/useProxyLatency.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -43,12 +43,13 @@ export const useProxyLatency = (
4343
)
4444

4545
// This latestFetchRequest is used to trigger a refetch of the proxy latencies.
46-
const [latestFetchRequest, setLatestFetchRequest] = useState(new Date().toISOString())
46+
const [latestFetchRequest, setLatestFetchRequest] = useState(
47+
new Date().toISOString(),
48+
)
4749
const refetch = () => {
4850
setLatestFetchRequest(new Date().toISOString())
4951
}
5052

51-
5253
// Only run latency updates when the proxies change.
5354
useEffect(() => {
5455
if (!proxies) {

0 commit comments

Comments
 (0)
Failed to load comments.