diff --git a/src/app/test-controller/test-controller.component.ts b/src/app/test-controller/test-controller.component.ts index ccfefdf7a9bf8c7a65b440e9d60d4d32c353e38a..43857a6b113fe47f32ce61f82ca753e102d41a05 100644 --- a/src/app/test-controller/test-controller.component.ts +++ b/src/app/test-controller/test-controller.component.ts @@ -354,6 +354,11 @@ export class TestControllerComponent implements OnInit, OnDestroy { this.routingSubscription = this.route.params.subscribe(params => { if (this.tcs.testStatus$.getValue() !== TestControllerState.ERROR) { this.tcs.testId = params.t; + + // Reset TestMode to be Demo, before the correct one comes with getTestData + // TODO maybe it would be better to retrieve the testmode from the login + this.tcs.testMode = new TestMode(); + localStorage.setItem(TestControllerComponent.localStorageTestKey, params.t); this.unsubscribeTestSubscriptions();