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 values = watch();
|
||||||
|
|
||||||
const onSubmit = handleSubmit(async (data) => {
|
const onSubmit = handleSubmit(async (data) => {
|
||||||
const updatedData = {
|
// TODO: remove unused code
|
||||||
...data,
|
// const updatedData = {
|
||||||
taxes: includeTaxes ? defaultValues.taxes : data.taxes,
|
// ...data,
|
||||||
};
|
// taxes: includeTaxes ? defaultValues.taxes : data.taxes,
|
||||||
|
// };
|
||||||
|
|
||||||
try {
|
try {
|
||||||
// sanitize file field
|
// sanitize file field
|
||||||
|
Reference in New Issue
Block a user