summaryrefslogtreecommitdiff
path: root/src-migrate/modules
diff options
context:
space:
mode:
Diffstat (limited to 'src-migrate/modules')
-rw-r--r--src-migrate/modules/product-detail/components/ProductDetail.tsx4
1 files 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);