diff --git a/src/lib/components/MaintenancePopup.js b/src/lib/components/MaintenancePopup.js index fd6f188..e1800a1 100644 --- a/src/lib/components/MaintenancePopup.js +++ b/src/lib/components/MaintenancePopup.js @@ -244,7 +244,7 @@ export class MaintenancePopup extends BaseComponent { * @return {function(): void} Unsubscribe function. Call it to stop watching for changes. */ static #watchActiveProfile(callback) { - let lastActiveProfileId = null; + let lastActiveProfileId; const unsubscribeFromProfilesChanges = MaintenanceProfile.subscribe(profiles => { if (lastActiveProfileId) {