From d2108fa6fc3864d9e3d3b4f0b3799fc55da71638 Mon Sep 17 00:00:00 2001 From: Adrien Date: Sun, 22 Sep 2024 19:38:03 +0200 Subject: [PATCH] =?UTF-8?q?=E2=99=BB=EF=B8=8F=20=20Remove=20duplicated=20i?= =?UTF-8?q?f=20statement?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/main.rs | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) diff --git a/src/main.rs b/src/main.rs index 5cc8a45..bc39666 100644 --- a/src/main.rs +++ b/src/main.rs @@ -91,15 +91,12 @@ fn app() -> Element { if !SESSION.read().is_logged { login_coro.send(false); - } - - if SESSION.read().is_logged { rsx! { - Conversations {} + Login {} } } else { rsx! { - Login {} + Conversations {} } } }