From 4e77e653624fcb12ccb52c56d8226e1359cd64f9 Mon Sep 17 00:00:00 2001 From: Felix Ableitner Date: Mon, 25 Nov 2024 12:00:36 +0100 Subject: [PATCH] replace with to fix crash --- src/frontend/app.rs | 3 +-- src/frontend/components/nav.rs | 10 +++++----- 2 files changed, 6 insertions(+), 7 deletions(-) diff --git a/src/frontend/app.rs b/src/frontend/app.rs index 1c4bca7..807c804 100644 --- a/src/frontend/app.rs +++ b/src/frontend/app.rs @@ -35,8 +35,7 @@ pub fn site() -> Resource { } pub fn is_logged_in() -> bool { - //site().with_default(|site| site.my_profile.is_some()) - false + site().with_default(|site| site.my_profile.is_some()) } pub fn is_admin() -> bool { site().with_default(|site| { diff --git a/src/frontend/components/nav.rs b/src/frontend/components/nav.rs index 5fa91e5..6912ef4 100644 --- a/src/frontend/components/nav.rs +++ b/src/frontend/components/nav.rs @@ -50,7 +50,7 @@ pub fn Nav() -> impl IntoView {
  • "Articles"
  • - +
  • "Create Article" @@ -59,12 +59,12 @@ pub fn Nav() -> impl IntoView { "Notifications " - {move || notification_count.get()} + {move || notification_count.get()}
  • -
    +
  • impl IntoView {
  • - + impl IntoView { } - +