This commit is contained in:
Georges KABBOUCHI 2021-08-28 00:48:42 +03:00
parent a0bb28007a
commit 55f65f8670

View File

@ -127,7 +127,7 @@ export function useMakerdaoPosition(
return;
}
vaults.value = await getVaults(activeAccount.value.address, web3.value);
if (vaults.value.length > 0) {
if (vaults.value.length > 0 && !vaultId.value) {
vaultId.value = vaults.value[0].id;
}
};