diff --git a/src/components/Authentication/SignInUserPasskey.tsx b/src/components/Authentication/SignInUserPasskey.tsx
index 2c90457ad..97a6da657 100644
--- a/src/components/Authentication/SignInUserPasskey.tsx
+++ b/src/components/Authentication/SignInUserPasskey.tsx
@@ -11,6 +11,7 @@ import { startAuthentication } from '@simplewebauthn/browser';
import { useState } from 'react';
import React from 'react';
import SignInUserPassword from './SignInUserPassword';
+import { pathRoutes } from '../../config/pathRoutes';
interface signInUserProps {
email: string
@@ -26,7 +27,7 @@ const SignInUserPasskey = (signInUserProps: signInUserProps) => {
const handleSvgClick = () => {
-
+ window.history.pushState(null, '', pathRoutes.auth.sinIn);
setShowSignInUser(!showSignInUser);
};
diff --git a/src/components/Profile/AddPasskey.tsx b/src/components/Profile/AddPasskey.tsx
index f44da20f4..3de11841b 100644
--- a/src/components/Profile/AddPasskey.tsx
+++ b/src/components/Profile/AddPasskey.tsx
@@ -36,13 +36,11 @@ import UpdateUserProfile from './EditUserProfile';
}
};
-
const toggleEditProfile = async () => {
await fetchUserProfile()
setIsEditProfileOpen(!isEditProfileOpen);
};
-
const showFidoError = (error: unknown): void => {
const err = error as AxiosError
if (err.message.includes("The operation either timed out or was not allowed")) {
@@ -243,12 +241,12 @@ import UpdateUserProfile from './EditUserProfile';
-
*/}
{
(addSuccess || addfailure || fidoError) &&