From 359fb4787cb2ca2f3e0b41530f92eec9e635f2e5 Mon Sep 17 00:00:00 2001 From: HardiReady Date: Sun, 21 Jan 2018 11:50:22 +0100 Subject: [PATCH] Fix bg change destroy condition --- static/src/app/army/army.component.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/src/app/army/army.component.ts b/static/src/app/army/army.component.ts index 069b6d2..b55a932 100644 --- a/static/src/app/army/army.component.ts +++ b/static/src/app/army/army.component.ts @@ -37,7 +37,7 @@ export class ArmyComponent { }; ngOnDestroy() { - if (this.router.url.includes(RouteConfig.overviewPath)) { + if (!this.router.url.includes(RouteConfig.overviewPath)) { this.document.getElementById('right').setAttribute('style', ''); } }