Handy_Cao преди 3 седмици
родител
ревизия
e70910246e
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/packages/digital/views/contract/goods/detail/index.vue

+ 1 - 1
src/packages/digital/views/contract/goods/detail/index.vue

@@ -294,7 +294,7 @@ const calculations = computed(() => {
     const estimatedAmount = price * amount
 
     const accountStore = useAccountStore()
-    const { avaiableBalance = 0 } = computed(() => accountStore.filterAccountsByCurrencyId(currencyid, goodscurrencyid)).value[0]
+    const { avaiableBalance = 0 } = computed(() => accountStore.filterAccountsByCurrencyId(currencyid, goodscurrencyid)).value[0] ?? {}
 
     const openAmount = price*OrderQty*agreeunit