From a2a8f3e7d0a8c663db8346c8896a3b54b929a562 Mon Sep 17 00:00:00 2001 From: Georges KABBOUCHI Date: Sun, 8 Aug 2021 23:34:05 +0300 Subject: [PATCH] fix --- composables/useMakerdaoPosition.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/composables/useMakerdaoPosition.ts b/composables/useMakerdaoPosition.ts index 7a6b55d..c8bf81e 100644 --- a/composables/useMakerdaoPosition.ts +++ b/composables/useMakerdaoPosition.ts @@ -89,8 +89,8 @@ export function useMakerdaoPosition() { const debt = computed(() => ensureValue(vault.value.debt).toFixed()); const minDebt = computed(() => vaultTypes.value[0]?.totalFloor || "5000"); const debtCeilingReached = computed(() => - vaultTypes.value?.some(vault => - gt(vault.value?.overallTotalDebt, vault.value?.overallTotalDebtCeiling) + vaultTypes.value?.some(v => + gt(v.overallTotalDebt, v.overallTotalDebtCeiling) ) );