We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 657e5ec + b361bf9 commit b4f68e2Copy full SHA for b4f68e2
apps/insights/src/server/pyth.ts
@@ -93,5 +93,7 @@ export const getFeedForSymbolRequest = async ({
93
94
const rawData = await data.text();
95
const parsedData = parse(rawData);
96
- return priceFeedsSchema.element.parse(parsedData);
+ return parsedData === undefined
97
+ ? undefined
98
+ : priceFeedsSchema.element.parse(parsedData);
99
};
0 commit comments