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.
1 parent 0ac50b6 commit 459f7b1Copy full SHA for 459f7b1
apps/insights/src/components/PythProDemoCards/price-card.tsx
@@ -18,6 +18,7 @@ import {
18
datasourceRequiresApiToken,
19
getColorForDataSource,
20
isAllowedSymbol,
21
+ isReplaySymbol,
22
} from "../../util/pyth-pro-demo";
23
24
type PriceCardProps = {
@@ -102,7 +103,9 @@ export function PythProDemoCard({
102
103
{socketStatus && (
104
<div className={classes.socketStatus}>
105
{/* the token is either missing or it's a bad token */}
- {requiresToken && (!apiToken || socketStatus === "closed") ? (
106
+ {!isReplaySymbol(selectedSource) &&
107
+ requiresToken &&
108
+ (!apiToken || socketStatus === "closed") ? (
109
<>
110
Please enter a good API token
111
<br />
0 commit comments