diff --git a/src/app/providers/GuestRoute.tsx b/src/app/providers/GuestRoute.tsx
index 14f4b03..bc2e9fb 100644
--- a/src/app/providers/GuestRoute.tsx
+++ b/src/app/providers/GuestRoute.tsx
@@ -1,11 +1,13 @@
-import { Navigate, Outlet } from 'react-router-dom'
+import { Navigate, Outlet, useLocation } from 'react-router-dom'
import { useIsAuthenticated } from '@features/auth'
import { ROUTES } from '@shared/config/routes'
export function GuestRoute() {
const { isAuthenticated, isLoading } = useIsAuthenticated()
+ const location = useLocation()
+ const from = (location.state as { from?: { pathname: string } })?.from?.pathname ?? ROUTES.WALLET
if (isLoading) return null
- if (isAuthenticated) return
+ if (isAuthenticated) return
return
}
diff --git a/src/app/providers/QueryProvider.tsx b/src/app/providers/QueryProvider.tsx
index 7883bcb..90b31a7 100644
--- a/src/app/providers/QueryProvider.tsx
+++ b/src/app/providers/QueryProvider.tsx
@@ -1,7 +1,9 @@
import { QueryClient, QueryClientProvider } from '@tanstack/react-query'
import type { ReactNode } from 'react'
-const queryClient = new QueryClient()
+const queryClient = new QueryClient({
+ defaultOptions: { queries: { retry: false } },
+})
export function QueryProvider({ children }: { children: ReactNode }) {
return {children}
diff --git a/src/widgets/currency-converter/ui/Converter.tsx b/src/widgets/currency-converter/ui/Converter.tsx
index 680ef79..1a5de6b 100644
--- a/src/widgets/currency-converter/ui/Converter.tsx
+++ b/src/widgets/currency-converter/ui/Converter.tsx
@@ -68,7 +68,6 @@ export function Converter() {