Guillermo Bescos 1 year ago
parent
commit
9172fadc45
1 changed files with 5 additions and 3 deletions
  1. 5 3
      governance/xc_admin/packages/xc_admin_frontend/hooks/usePyth.ts

+ 5 - 3
governance/xc_admin/packages/xc_admin_frontend/hooks/usePyth.ts

@@ -74,9 +74,11 @@ const usePyth = (): PythHookData => {
     connectionRef.current = connection
     ;(async () => {
       try {
-        const allPythAccounts = await connection.getProgramAccounts(
-          getPythProgramKeyForCluster(cluster)
-        )
+        const allPythAccounts = [
+          ...(await connection.getProgramAccounts(
+            getPythProgramKeyForCluster(cluster)
+          )),
+        ]
         if (cancelled) return
         const priceRawConfigs: { [key: string]: PriceRawConfig } = {}