AI Implementation feature(905): Challenges Page and Challenge Solve Modal 1.01 (#47)
This commit was merged in pull request #47.
This commit is contained in:
@@ -127,6 +127,10 @@ export class ChallengesPage implements OnInit, OnDestroy {
|
||||
|
||||
constructor() {
|
||||
this.destroyRef.onDestroy(() => this.store.stop());
|
||||
const unsubscribeReload = this.eventStatus.subscribeReloadAtCountdownZero(() => {
|
||||
if (typeof window !== 'undefined') window.location.reload();
|
||||
});
|
||||
this.destroyRef.onDestroy(() => unsubscribeReload());
|
||||
}
|
||||
|
||||
ngOnInit(): void {
|
||||
@@ -147,9 +151,6 @@ export class ChallengesPage implements OnInit, OnDestroy {
|
||||
() => this.authenticatedEventSource.open('/api/v1/events'),
|
||||
);
|
||||
}
|
||||
this.eventStatus.reloadAtCountdownZero(() => {
|
||||
if (typeof window !== 'undefined') window.location.reload();
|
||||
});
|
||||
}
|
||||
|
||||
ngOnDestroy(): void {
|
||||
|
||||
Reference in New Issue
Block a user