fix:removed toast

This commit is contained in:
Shubham Khunt
2023-08-06 11:51:01 +05:30
parent 8c31c71251
commit e85d95a4eb
2 changed files with 0 additions and 6 deletions

View File

@@ -41,9 +41,6 @@ export default function EditTeamName({ environmentId }) {
<form
className="w-full max-w-sm items-center"
onSubmit={handleSubmit((data) => {
if (currentTeamName === previousTeamName) {
return toast.error("Please change team name to update");
}
triggerTeamMutate({ ...data })
.catch((error) => {
toast.error(`Error: ${error.message}`);

View File

@@ -44,9 +44,6 @@ export function EditName() {
<form
className="w-full max-w-sm items-center"
onSubmit={handleSubmit((data) => {
if (currentProfileName === previousProfileName) {
return toast.error("Please change profile name to update");
}
triggerProfileMutate(data)
.then(() => {
toast.success("Your name was updated successfully.");