From a6f90fc7ee6acb42eafefddd02a3ca440b52b8b3 Mon Sep 17 00:00:00 2001 From: Herbert Wolverson Date: Fri, 17 May 2024 11:32:35 -0500 Subject: [PATCH] Correct not displaying the "stats free trial" toast message if stats are disabled. --- src/rust/lqos_node_manager/src/toasts.rs | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/rust/lqos_node_manager/src/toasts.rs b/src/rust/lqos_node_manager/src/toasts.rs index 36f31bfb..3aaeae8a 100644 --- a/src/rust/lqos_node_manager/src/toasts.rs +++ b/src/rust/lqos_node_manager/src/toasts.rs @@ -69,7 +69,6 @@ pub async fn version_check() -> Json { pub enum StatsCheckResponse { DoNothing, NotSetup, - Disabled, GoodToGo, } @@ -90,7 +89,7 @@ pub async fn stats_check() -> Json { if let Ok(cfg) = load_config() { if !cfg.long_term_stats.gather_stats { response = StatsCheckAction { - action: StatsCheckResponse::Disabled, + action: StatsCheckResponse::NotSetup, node_id: cfg.node_id.to_string(), }; } else {