fix(trading): check for mark price configuration
This commit is contained in:
parent
17946ae149
commit
88251fae4d
@ -45,7 +45,7 @@ export const MarketHeaderStats = ({ market }: MarketHeaderStatsProps) => {
|
||||
const asset = getAsset(market);
|
||||
const quoteUnit = getQuoteName(market);
|
||||
|
||||
const dataSourceSpec = market.markPriceConfiguration.dataSourcesSpec?.[1];
|
||||
const dataSourceSpec = market.markPriceConfiguration?.dataSourcesSpec?.[1];
|
||||
const sourceType =
|
||||
dataSourceSpec?.sourceType.__typename === 'DataSourceDefinitionExternal' &&
|
||||
dataSourceSpec?.sourceType.sourceType.__typename === 'EthCallSpec' &&
|
||||
|
Loading…
Reference in New Issue
Block a user