Skip to content

Commit 38f7eaf

Browse files
committed
fix: minor fixes
1 parent 4b21b82 commit 38f7eaf

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

apps/insights/src/components/ConformanceReport/conformance-report.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff 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,

apps/insights/src/components/ConformanceReport/use-download-report-for-feed.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
import { useCallback } from "react";
22

33
import { WEB_API_BASE_URL } from "./constants";
4+
import type { Interval } from "./types";
45
import { useDownloadBlob } from "../../hooks/use-download-blob";
56
import { 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);

0 commit comments

Comments
 (0)