From 1d89134ea2ef7740462eed1bf119c50baead2e5a Mon Sep 17 00:00:00 2001 From: louiscklaw Date: Tue, 17 Jun 2025 18:30:30 +0800 Subject: [PATCH] fix: remove unused tax calculation code in product form --- .../src/sections/product/product-new-edit-form.tsx | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/03_source/frontend/src/sections/product/product-new-edit-form.tsx b/03_source/frontend/src/sections/product/product-new-edit-form.tsx index b8463f0..a119967 100644 --- a/03_source/frontend/src/sections/product/product-new-edit-form.tsx +++ b/03_source/frontend/src/sections/product/product-new-edit-form.tsx @@ -188,10 +188,11 @@ export function ProductNewEditForm({ currentProduct }: Props) { const values = watch(); const onSubmit = handleSubmit(async (data) => { - const updatedData = { - ...data, - taxes: includeTaxes ? defaultValues.taxes : data.taxes, - }; + // TODO: remove unused code + // const updatedData = { + // ...data, + // taxes: includeTaxes ? defaultValues.taxes : data.taxes, + // }; try { // sanitize file field