Skip to content

Commit ab779d0

Browse files
authored
Reset urlIndex (#700)
1 parent fc0de28 commit ab779d0

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

governance/xc_admin/packages/xc_admin_frontend/hooks/useMultisig.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,10 @@ export const useMultisig = (wallet: Wallet): MultisigHookData => {
9090
setError(null)
9191
}, [urlsIndex, cluster])
9292

93+
useEffect(() => {
94+
setUrlsIndex(0)
95+
}, [cluster])
96+
9397
useEffect(() => {
9498
const urls = pythClusterApiUrls(getMultisigCluster(cluster))
9599
const connection = new Connection(urls[urlsIndex].rpcUrl, {

0 commit comments

Comments
 (0)