CT-30 BUG: Forcetracker clear button removes login token #14
@ -100,10 +100,11 @@ export class ArmyDetailComponent implements OnInit {
|
||||
if (unit && unit.id && unit.unitPowerLevel && this.forceAddedOrNot(unit.id)) {
|
||||
this.forcePoints = this.forcePoints - unit.unitPowerLevel;
|
||||
const index = this.getForceUnitIndex(unit);
|
||||
if (index) {
|
||||
if (index !== null) {
|
||||
this.forceUnitList.splice(index, 1);
|
||||
}
|
||||
}
|
||||
console.log(this.forceUnitList);
|
||||
localStorage.setItem('forceAddedListStored', JSON.stringify(this.forceUnitList));
|
||||
return this.forcePoints;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user