fix: removed error toast

This commit is contained in:
Shubham Khunt
2023-07-22 19:27:53 +05:30
parent 62a08f304b
commit 8c31c71251
@@ -41,9 +41,6 @@ export default function EditTeamName({ environmentId }) {
<form
className="w-full max-w-sm items-center"
onSubmit={handleSubmit((data) => {
if (isTeamNameInputEmpty) {
return toast.error("Team name should not be empty");
}
if (currentTeamName === previousTeamName) {
return toast.error("Please change team name to update");
}