[xc-admin] Enable proposal page for testnet and pythtest (#582)
* Enable proposal page * Revert this file
This commit is contained in:
parent
13e48bdd51
commit
e250049a90
|
@ -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) {
|
||||||
|
|
Loading…
Reference in New Issue