redirection fixed on edit profile

This commit is contained in:
Malini 2026-01-22 12:26:52 +05:30
parent 7e11d79060
commit fce67c8e02

View File

@ -617,7 +617,7 @@ const EditCompanyProfile = () => {
};
if (establishmentId) {
await updateEstablishment(establishmentId, establishmentData);
navigate('/survey');
navigate('/dashboard');
} else {
console.error("No establishment ID provided for update");
alert("Error: No establishment ID provided for update");