File tree Expand file tree Collapse file tree 1 file changed +8
-4
lines changed
governance/xc_admin/packages/xc_admin_frontend/hooks Expand file tree Collapse file tree 1 file changed +8
-4
lines changed Original file line number Diff line number Diff line change @@ -101,32 +101,36 @@ export const useMultisig = (wallet: Wallet): MultisigHookData => {
101
101
UPGRADE_MULTISIG [ getMultisigCluster ( cluster ) ]
102
102
)
103
103
)
104
- if ( cluster === 'devnet' ) {
104
+ try {
105
+ // DELETE THIS TRY CATCH ONCE THIS MULTISIG EXISTS EVERYWHERE
105
106
setpriceFeedMultisigAccount (
106
107
await squads . getMultisig (
107
108
PRICE_FEED_MULTISIG [ getMultisigCluster ( cluster ) ]
108
109
)
109
110
)
110
- } else {
111
+ } catch {
111
112
setpriceFeedMultisigAccount ( undefined )
112
113
}
114
+
113
115
if ( cancelled ) return
114
116
setUpgradeMultisigProposals (
115
117
await getSortedProposals (
116
118
squads ,
117
119
UPGRADE_MULTISIG [ getMultisigCluster ( cluster ) ]
118
120
)
119
121
)
120
- if ( cluster === 'devnet' ) {
122
+ try {
123
+ // DELETE THIS TRY CATCH ONCE THIS MULTISIG EXISTS EVERYWHERE
121
124
setpriceFeedMultisigProposals (
122
125
await getSortedProposals (
123
126
squads ,
124
127
PRICE_FEED_MULTISIG [ getMultisigCluster ( cluster ) ]
125
128
)
126
129
)
127
- } else {
130
+ } catch {
128
131
setpriceFeedMultisigProposals ( [ ] )
129
132
}
133
+
130
134
setSquads ( squads )
131
135
setIsLoading ( false )
132
136
} catch ( e ) {
You can’t perform that action at this time.
0 commit comments