diff --git a/src/util/state.rs b/src/util/state.rs index 32382e7..6d23dcb 100644 --- a/src/util/state.rs +++ b/src/util/state.rs @@ -14,7 +14,7 @@ pub struct GlobalState { /// A resource that fetches the logged in user /// This will not automatically refetch, so any login/logout related code /// should call `refetch` on this resource - pub logged_in_user: Resource<(), Option>, + pub logged_in_user: Resource>, /// The current play status pub play_status: RwSignal, @@ -39,7 +39,7 @@ impl GlobalState { } } - pub fn logged_in_user() -> Resource<(), Option> { + pub fn logged_in_user() -> Resource> { expect_context::().logged_in_user }