♻️ Remove duplicated if statement
This commit is contained in:
@@ -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 {}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user