mirror of
https://github.com/formbricks/formbricks.git
synced 2026-04-18 19:41:17 -05:00
fix:removed toast
This commit is contained in:
@@ -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}`);
|
||||
|
||||
@@ -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.");
|
||||
|
||||
Reference in New Issue
Block a user