[xc-admin] Enable proposal page for testnet and pythtest (#582)

* Enable proposal page

* Revert this file
This commit is contained in:
guibescos 2023-02-10 20:49:48 -06:00 committed by GitHub
parent 13e48bdd51
commit e250049a90
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 8 additions and 4 deletions

View File

@ -101,15 +101,17 @@ export const useMultisig = (wallet: Wallet): MultisigHookData => {
UPGRADE_MULTISIG[getMultisigCluster(cluster)] UPGRADE_MULTISIG[getMultisigCluster(cluster)]
) )
) )
if (cluster === 'devnet') { try {
// DELETE THIS TRY CATCH ONCE THIS MULTISIG EXISTS EVERYWHERE
setpriceFeedMultisigAccount( setpriceFeedMultisigAccount(
await squads.getMultisig( await squads.getMultisig(
PRICE_FEED_MULTISIG[getMultisigCluster(cluster)] PRICE_FEED_MULTISIG[getMultisigCluster(cluster)]
) )
) )
} else { } catch {
setpriceFeedMultisigAccount(undefined) setpriceFeedMultisigAccount(undefined)
} }
if (cancelled) return if (cancelled) return
setUpgradeMultisigProposals( setUpgradeMultisigProposals(
await getSortedProposals( await getSortedProposals(
@ -117,16 +119,18 @@ export const useMultisig = (wallet: Wallet): MultisigHookData => {
UPGRADE_MULTISIG[getMultisigCluster(cluster)] UPGRADE_MULTISIG[getMultisigCluster(cluster)]
) )
) )
if (cluster === 'devnet') { try {
// DELETE THIS TRY CATCH ONCE THIS MULTISIG EXISTS EVERYWHERE
setpriceFeedMultisigProposals( setpriceFeedMultisigProposals(
await getSortedProposals( await getSortedProposals(
squads, squads,
PRICE_FEED_MULTISIG[getMultisigCluster(cluster)] PRICE_FEED_MULTISIG[getMultisigCluster(cluster)]
) )
) )
} else { } catch {
setpriceFeedMultisigProposals([]) setpriceFeedMultisigProposals([])
} }
setSquads(squads) setSquads(squads)
setIsLoading(false) setIsLoading(false)
} catch (e) { } catch (e) {