From 3b0e63124aa41a0dd0ddcc067906b9069b4b941c Mon Sep 17 00:00:00 2001 From: Ed_ Date: Tue, 9 Jun 2026 17:45:13 -0400 Subject: [PATCH] fix(mma): process global mma_state_update when no track in payload --- src/app_controller.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app_controller.py b/src/app_controller.py index 5b707716..f955876b 100644 --- a/src/app_controller.py +++ b/src/app_controller.py @@ -467,7 +467,7 @@ def _handle_mma_state_update(controller: 'AppController', task: dict): if track_data and controller.active_track and track_data.get("id") == controller.active_track.id: is_active_track = True - if is_active_track or not controller.active_track: + if is_active_track or not controller.active_track or not track_data: controller._mma_status = p.get("status", controller._mma_status) old_tier = controller.active_tier @@ -496,7 +496,7 @@ def _handle_mma_state_update(controller: 'AppController', task: dict): else: controller.mma_tier_usage[tier] = data - if is_active_track or not controller.active_track: + if is_active_track or not controller.active_track or not track_data: controller.active_tickets = p.get("tickets", []) if track_data: tickets = []