File tree Expand file tree Collapse file tree 2 files changed +4
-3
lines changed
apps/insights/src/components/ConformanceReport Expand file tree Collapse file tree 2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -40,7 +40,7 @@ const ConformanceReport = (props: ConformanceReportProps) => {
40
40
return ;
41
41
}
42
42
if ( props . symbol && props . publisher ) {
43
- await downloadReportForFeed ( {
43
+ return downloadReportForFeed ( {
44
44
symbol : props . symbol ,
45
45
publisher : props . publisher ,
46
46
timeframe,
@@ -49,7 +49,7 @@ const ConformanceReport = (props: ConformanceReportProps) => {
49
49
}
50
50
51
51
if ( props . publisher ) {
52
- await downloadReportForPublisher ( {
52
+ return downloadReportForPublisher ( {
53
53
publisher : props . publisher ,
54
54
cluster : props . cluster ,
55
55
interval : timeframe ,
Original file line number Diff line number Diff line change 1
1
import { useCallback } from "react" ;
2
2
3
3
import { WEB_API_BASE_URL } from "./constants" ;
4
+ import type { Interval } from "./types" ;
4
5
import { useDownloadBlob } from "../../hooks/use-download-blob" ;
5
6
import { CLUSTER_NAMES } from "../../services/pyth" ;
6
7
@@ -19,7 +20,7 @@ export const useDownloadReportForFeed = () => {
19
20
} : {
20
21
symbol : string ;
21
22
publisher : string ;
22
- timeframe : string ;
23
+ timeframe : Interval ;
23
24
cluster : ( typeof CLUSTER_NAMES ) [ number ] ;
24
25
} ) => {
25
26
const url = new URL ( "/metrics/conformance" , WEB_API_BASE_URL ) ;
You can’t perform that action at this time.
0 commit comments