diff --git a/src/API/LayoutApi/profile.ts b/src/API/LayoutApi/profile.ts
index 6b1221b..88df074 100644
--- a/src/API/LayoutApi/profile.ts
+++ b/src/API/LayoutApi/profile.ts
@@ -77,8 +77,7 @@ export const prof = {
} catch (error: any) {
setTimeout(() => {
message.error({
- content: error.response.data.username,
- key: 2,
+ content: "Something went wrong",
duration: 2,
});
}, 1000);
diff --git a/src/Auth/ResetByEmail.tsx b/src/Auth/ResetByEmail.tsx
index 32b2f45..945a7f0 100644
--- a/src/Auth/ResetByEmail.tsx
+++ b/src/Auth/ResetByEmail.tsx
@@ -3,7 +3,7 @@ import { Button, Space, Card, Form, Input } from "antd";
import { LockOutlined } from "@ant-design/icons";
import { common } from "../Utils/common";
-import { Navigate, useLocation } from "react-router-dom";
+import { useNavigate, useLocation } from "react-router-dom";
import { resetPassEmail } from "../API/auth/resetPass";
const ResetByEmail: React.FC = () => {
@@ -12,29 +12,20 @@ const ResetByEmail: React.FC = () => {
const queryParameters = new URLSearchParams(location.search);
const confirmation_token = queryParameters.get("confirmation_token");
const user_id = queryParameters.get("user_id");
+ const navigate = useNavigate();
const onFinish = (values: any) => {
values.confirmation_token = confirmation_token;
values.user_id = user_id;
- if(values.user_id){
- resetPassEmail(values).then(() => {
-