Correct not displaying the "stats free trial" toast message if

stats are disabled.
This commit is contained in:
Herbert Wolverson 2024-05-17 11:32:35 -05:00
parent ed403f7869
commit a6f90fc7ee

View File

@ -69,7 +69,6 @@ pub async fn version_check() -> Json<String> {
pub enum StatsCheckResponse {
DoNothing,
NotSetup,
Disabled,
GoodToGo,
}
@ -90,7 +89,7 @@ pub async fn stats_check() -> Json<StatsCheckAction> {
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 {