Kaynağa Gözat

Merge pull request #2321 from pyth-network/cprussin/minor-fixes

fix(insights): minor fixes
Connor Prussin 9 ay önce
ebeveyn
işleme
d5ec44e292

+ 2 - 0
apps/insights/src/components/PriceComponentDrawer/index.tsx

@@ -93,12 +93,14 @@ export const PriceComponentDrawer = ({
         <StatCard
           nonInteractive
           header="Aggregate Price"
+          small
           stat={<LivePrice feedKey={feedKey} />}
         />
         <StatCard
           nonInteractive
           header="Publisher Price"
           variant="primary"
+          small
           stat={<LivePrice feedKey={feedKey} publisherKey={publisherKey} />}
         />
         <StatCard

+ 10 - 7
apps/insights/src/components/PriceFeed/publishers.tsx

@@ -22,14 +22,17 @@ type Props = {
 export const Publishers = async ({ params }: Props) => {
   const { slug } = await params;
   const symbol = decodeURIComponent(slug);
-  const [feeds, pythnetPublishers, pythtestConformancePublishers] =
-    await Promise.all([
-      getFeeds(Cluster.Pythnet),
-      getPublishers(Cluster.Pythnet, symbol),
-      getPublishers(Cluster.PythtestConformance, symbol),
-    ]);
+  const [
+    feeds,
+    pythnetPublishers, // , pythtestConformancePublishers
+  ] = await Promise.all([
+    getFeeds(Cluster.Pythnet),
+    getPublishers(Cluster.Pythnet, symbol),
+    // getPublishers(Cluster.PythtestConformance, symbol),
+  ]);
   const feed = feeds.find((feed) => feed.symbol === symbol);
-  const publishers = [...pythnetPublishers, ...pythtestConformancePublishers];
+  // const publishers = [...pythnetPublishers, ...pythtestConformancePublishers];
+  const publishers = [...pythnetPublishers];
   const metricsTime = pythnetPublishers.find(
     (publisher) => publisher.ranking !== undefined,
   )?.ranking?.time;