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) => {
4040 return ;
4141 }
4242 if ( props . symbol && props . publisher ) {
43- await downloadReportForFeed ( {
43+ return downloadReportForFeed ( {
4444 symbol : props . symbol ,
4545 publisher : props . publisher ,
4646 timeframe,
@@ -49,7 +49,7 @@ const ConformanceReport = (props: ConformanceReportProps) => {
4949 }
5050
5151 if ( props . publisher ) {
52- await downloadReportForPublisher ( {
52+ return downloadReportForPublisher ( {
5353 publisher : props . publisher ,
5454 cluster : props . cluster ,
5555 interval : timeframe ,
Original file line number Diff line number Diff line change 11import { useCallback } from "react" ;
22
33import { WEB_API_BASE_URL } from "./constants" ;
4+ import type { Interval } from "./types" ;
45import { useDownloadBlob } from "../../hooks/use-download-blob" ;
56import { CLUSTER_NAMES } from "../../services/pyth" ;
67
@@ -19,7 +20,7 @@ export const useDownloadReportForFeed = () => {
1920 } : {
2021 symbol : string ;
2122 publisher : string ;
22- timeframe : string ;
23+ timeframe : Interval ;
2324 cluster : ( typeof CLUSTER_NAMES ) [ number ] ;
2425 } ) => {
2526 const url = new URL ( "/metrics/conformance" , WEB_API_BASE_URL ) ;
You can’t perform that action at this time.
0 commit comments