@energycap/components 0.39.11-ECAP-24439-Bill-Capture-Tour.20240325-1306 → 0.39.11-ECAP-24439-Bill-Capture-Tour.20240325-1440

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -9333,13 +9333,16 @@ class TourComponent {
9333
9333
  }
9334
9334
  else if (event.tourAction === 'append') {
9335
9335
  let visibleTours = event.tours;
9336
+ // If this was triggered via auto start then we need to remove any tours that have been completed
9337
+ if (event.isAutoStart) {
9338
+ visibleTours = this.removeCompletedTours(visibleTours);
9339
+ }
9340
+ // If there is already a current tour, then we need to append the new tours to the current tour
9336
9341
  if (this.currentTour) {
9337
- if (event.isAutoStart) {
9338
- visibleTours = this.removeCompletedTours(visibleTours);
9339
- }
9340
9342
  this.tours = this.tours.concat(visibleTours);
9341
9343
  }
9342
9344
  else {
9345
+ // There is not a current tour, so treat this as a start event
9343
9346
  await this.setupTourComponent(event);
9344
9347
  }
9345
9348
  }