diff --git a/src/components/CreateCompany/CreateCompany.tsx b/src/components/CreateCompany/CreateCompany.tsx index 26aae87..af01dcd 100644 --- a/src/components/CreateCompany/CreateCompany.tsx +++ b/src/components/CreateCompany/CreateCompany.tsx @@ -45,7 +45,7 @@ const CreateCompany: React.FC = ({ setServerError(""); // console.log(JSON.stringify(data)); await saveCompany(data) - router.replace("/settings/company"); + router.push("/settings/company"); } catch (e) { setServerError(t("An error has occurred. Please try again later.")); } diff --git a/src/components/CreateDepartment/CreateDepartment.tsx b/src/components/CreateDepartment/CreateDepartment.tsx index 2d95d28..8e8e253 100644 --- a/src/components/CreateDepartment/CreateDepartment.tsx +++ b/src/components/CreateDepartment/CreateDepartment.tsx @@ -50,7 +50,7 @@ const CreateDepartment: React.FC = ({ setServerError(""); // console.log(JSON.stringify(data)); await saveDepartment(data) - router.replace("/settings/department"); + router.push("/settings/department"); } catch (e) { setServerError(t("An error has occurred. Please try again later.")); } diff --git a/src/components/CreatePosition/CreatePosition.tsx b/src/components/CreatePosition/CreatePosition.tsx index 0edfe0a..c1820eb 100644 --- a/src/components/CreatePosition/CreatePosition.tsx +++ b/src/components/CreatePosition/CreatePosition.tsx @@ -45,7 +45,7 @@ const CreatePosition: React.FC = ({ setServerError(""); // console.log(JSON.stringify(data)); await savePosition(data) - router.replace("/settings/position"); + router.push("/settings/position"); } catch (e) { setServerError(t("An error has occurred. Please try again later.")); }