From b4ceaa387a845d993a241d7f55cebd45b13a45d5 Mon Sep 17 00:00:00 2001 From: Oleg Yakovenko Date: Sun, 14 Jul 2024 20:57:29 +0300 Subject: [PATCH] added logs changed gif --- src/pages/root/steps/welcome-step/index.tsx | 6 +++++- src/shared/services/auth/index.ts | 2 ++ 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/src/pages/root/steps/welcome-step/index.tsx b/src/pages/root/steps/welcome-step/index.tsx index 1a6bd58..a167e02 100644 --- a/src/pages/root/steps/welcome-step/index.tsx +++ b/src/pages/root/steps/welcome-step/index.tsx @@ -12,8 +12,12 @@ export const WelcomeStep = ({ nextStep }: WelcomeStepProps) => { const [tonConnectUI] = useTonConnectUI(); const [isLoaded, setLoaded] = useState(false); +console.log('💩💩💩 enter WelcomeStep'); + const auth = useAuth(); + console.log('💩💩💩 after useAuth'); + const handleNextClick = async () => { if (tonConnectUI.connected) { nextStep(); @@ -42,7 +46,7 @@ export const WelcomeStep = ({ nextStep }: WelcomeStepProps) => {
- {"splash"} + {"splash"}
); } diff --git a/src/shared/services/auth/index.ts b/src/shared/services/auth/index.ts index f45c703..4308a8e 100644 --- a/src/shared/services/auth/index.ts +++ b/src/shared/services/auth/index.ts @@ -7,6 +7,8 @@ export const useAuth = () => { const WebApp = useWebApp(); return useMutation(["auth"], () => { + console.log("👀👀👀 in useMutation - auth"); + return request.post<{ connected_wallet: null | { version: string;