Skip to content

Commit b361bf9

Browse files
committed
fix(insights): fix error on loading GDP publishers
1 parent 24afa19 commit b361bf9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/insights/src/server/pyth.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,5 +93,7 @@ export const getFeedForSymbolRequest = async ({
9393

9494
const rawData = await data.text();
9595
const parsedData = parse(rawData);
96-
return priceFeedsSchema.element.parse(parsedData);
96+
return parsedData === undefined
97+
? undefined
98+
: priceFeedsSchema.element.parse(parsedData);
9799
};

0 commit comments

Comments
 (0)