bugfix
This commit is contained in:
@@ -162,8 +162,12 @@ export function ensureVault2(chainId, owner, num) {
|
||||
}
|
||||
|
||||
async function doEnsureVault(chainId, owner, num) {
|
||||
await _discoverVaults(owner)
|
||||
if( !useStore().vaults[num] ) {
|
||||
console.log(`requesting vault ${owner} ${num}`)
|
||||
socket.emit('ensureVault', chainId, owner, num)
|
||||
await sleep()
|
||||
}
|
||||
await sleep(5)
|
||||
}
|
||||
|
||||
const ensureVaultRoutine = new SingletonCoroutine(doEnsureVault, 100, false)
|
||||
|
||||
@@ -116,10 +116,7 @@ function checkVault() {
|
||||
}
|
||||
|
||||
// todo remove automatic vault creation for Alpha 2
|
||||
s.$subscribe((mutation, state)=>{
|
||||
console.log('test')
|
||||
checkVault()
|
||||
})
|
||||
s.$subscribe((mutation, state)=>{checkVault()})
|
||||
|
||||
</script>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user