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