From 60a37c58c41263847eae07f1acdcdc9c2b143c3e Mon Sep 17 00:00:00 2001 From: wjh Date: Tue, 19 Mar 2024 12:02:10 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E4=BF=AE=E6=94=B9=E8=AE=A2=E5=8D=95?= =?UTF-8?q?=E6=9F=A5=E8=AF=A2=E6=98=BE=E7=A4=BA=E7=9A=84=E7=90=86=E8=AE=BA?= =?UTF-8?q?=E9=87=8D=E9=87=8F=E9=80=BB=E8=BE=91=20(#420)=20Co-authored-by:?= =?UTF-8?q?=20wjh=20=20Co-committed-by:=20wjh=20?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/client/custom-components/RecordDetails.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx index 86124561b..beaa0df10 100644 --- a/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx +++ b/packages/plugins/@hera/plugin-rental/src/client/custom-components/RecordDetails.tsx @@ -71,7 +71,8 @@ export const RecordDetails: CustomFunctionComponent = () => { const unit = item.product.category.convertible ? item.product.category.conversion_unit : item.product.category.unit; - const weight = count * item.product.weight; + + const weight = item.count * item.product.weight; if (productItem[key]) { productItem[key].count += count; } else {