Skip to content

Commit 39e4cf4

Browse files
committed
refactor: config download
1 parent 9e742f5 commit 39e4cf4

File tree

1 file changed

+1
-2
lines changed
  • governance/xc_admin/packages/xc_admin_frontend/components/programs

1 file changed

+1
-2
lines changed

governance/xc_admin/packages/xc_admin_frontend/components/programs/PythCore.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,7 @@ const PythCore = ({ proposerServerUrl }: PythCoreProps) => {
6060

6161
useEffect(() => {
6262
if (!dataIsLoading && rawConfig) {
63-
const downloadableConfig =
64-
getDownloadableConfig[ProgramType.PYTH_CORE](rawConfig)
63+
const downloadableConfig = getDownloadableConfig(rawConfig)
6564
setData(downloadableConfig)
6665
}
6766
}, [rawConfig, dataIsLoading, cluster])

0 commit comments

Comments
 (0)