From 55f65f8670ed430a7a9bcb5fe586fa6620edafd4 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sat, 28 Aug 2021 00:48:42 +0300 Subject: [PATCH] fix --- composables/protocols/useMakerdaoPosition.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/composables/protocols/useMakerdaoPosition.ts b/composables/protocols/useMakerdaoPosition.ts index b6da639..d6c1394 100644 --- a/composables/protocols/useMakerdaoPosition.ts +++ b/composables/protocols/useMakerdaoPosition.ts @@ -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; } };