From c0f9e7b564ed6790be54e73ffd2fb25d926e052a Mon Sep 17 00:00:00 2001 From: Pratyaksha Date: Sun, 7 Jul 2024 19:40:35 +0530 Subject: [PATCH] Login Alert Sequence Correction --- .../src/pages/TrainingPage/LoginAdvice.tsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/atcoder-problems-frontend/src/pages/TrainingPage/LoginAdvice.tsx b/atcoder-problems-frontend/src/pages/TrainingPage/LoginAdvice.tsx index f2249d4a8..cbbf86436 100644 --- a/atcoder-problems-frontend/src/pages/TrainingPage/LoginAdvice.tsx +++ b/atcoder-problems-frontend/src/pages/TrainingPage/LoginAdvice.tsx @@ -12,9 +12,6 @@ interface Props { export const LoginAdvice: React.FC = (props) => { const loginLink = useLoginLink(); - if (props.loading) { - return Loading user info...; - } if (!props.user) { return ( @@ -22,6 +19,9 @@ export const LoginAdvice: React.FC = (props) => { ); } + if (props.loading) { + return Loading user info...; + } if (!props.user.atcoder_user_id) { return (