From 6efad9b51621e74b0322c128db2ee68f9ee28a61 Mon Sep 17 00:00:00 2001 From: Miqdad Date: Sun, 26 Oct 2025 00:48:47 +0700 Subject: remove floor disc amount --- src-migrate/modules/product-detail/components/ProductDetail.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src-migrate/modules/product-detail/components/ProductDetail.tsx b/src-migrate/modules/product-detail/components/ProductDetail.tsx index abd7188a..693d0a93 100644 --- a/src-migrate/modules/product-detail/components/ProductDetail.tsx +++ b/src-migrate/modules/product-detail/components/ProductDetail.tsx @@ -167,9 +167,9 @@ const ProductDetail = ({ product }: Props) => { let cut = 0; if (type.toLowerCase().startsWith('percent')) { - cut = Math.floor(basePrice * (percent / 100)); + cut = basePrice * (percent / 100); } else { - cut = Math.floor(amount || 0); + cut = amount || 0; } if (max > 0) cut = Math.min(cut, max); -- cgit v1.2.3