diff --git a/src/animations.rs b/src/animations.rs index 908e0bc..4a07d60 100644 --- a/src/animations.rs +++ b/src/animations.rs @@ -327,7 +327,7 @@ pub async fn clear( db: &State, action: &State>, ) -> String { - let action = lock().unwrap(); + let action = action.lock().unwrap(); let r = action.send(Action::Clear); if r.is_err() || r.ok().is_none() { return get_error_message("Something went wrong");