From 4eee95b9450dfc3682d25f432b082f239633deb4 Mon Sep 17 00:00:00 2001 From: carlossa Date: Mon, 4 Dec 2023 11:40:17 +0100 Subject: [PATCH 1/2] refs #6334 fix amount, colors --- src/pages/Claim/Card/ClaimLines.vue | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pages/Claim/Card/ClaimLines.vue b/src/pages/Claim/Card/ClaimLines.vue index c03291b85..7e98e43dd 100644 --- a/src/pages/Claim/Card/ClaimLines.vue +++ b/src/pages/Claim/Card/ClaimLines.vue @@ -46,7 +46,7 @@ async function onFetchClaim(data) { const amount = ref(0); const amountClaimed = ref(0); async function onFetch(rows) { - if (!rows || rows.length) return; + if (!rows || !rows.length) return; amount.value = rows.reduce( (acumulator, { sale }) => acumulator + sale.price * sale.quantity, 0 @@ -155,7 +155,7 @@ function showImportDialog() {