From 13df17544c35efb4d92ffd8b928eeb4278642fd6 Mon Sep 17 00:00:00 2001 From: Zoe Roux Date: Tue, 26 Mar 2024 00:27:33 +0100 Subject: [PATCH] Display the invalid account page when the refresh token is invalid --- front/packages/ui/src/errors/connection.tsx | 17 +++++++++-------- 1 file changed, 9 insertions(+), 8 deletions(-) diff --git a/front/packages/ui/src/errors/connection.tsx b/front/packages/ui/src/errors/connection.tsx index b1b17c9c..ac085672 100644 --- a/front/packages/ui/src/errors/connection.tsx +++ b/front/packages/ui/src/errors/connection.tsx @@ -52,14 +52,15 @@ export const ConnectionError = () => { ); } - if (account.isVerified) return ; - return ( - -

{t("errors.needVerification")}

-
- ); + if (!account.isVerified) { + return ( + +

{t("errors.needVerification")}

+
+ ); + } } return (