fix:removed toast

This commit is contained in:
Shubham Khunt
2023-08-06 11:51:31 +05:30
parent e85d95a4eb
commit df9ff011f7

View File

@@ -47,9 +47,6 @@ export function EditProductName({ environmentId }) {
<form
className="w-full max-w-sm items-center"
onSubmit={handleSubmit((data) => {
if (currentProductName === previousProductName) {
return toast.error("Please change product name to update");
}
triggerProductMutate(data)
.then(() => {
toast.success("Product name updated successfully.");