fix: remove unused tax calculation code in product form
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user