Fixed "stealable", and wrote spy instructions

This commit is contained in:
2019-06-05 15:20:15 +10:00
parent c88162ef03
commit a1c0f279c2
6 changed files with 42 additions and 30 deletions
+1 -1
View File
@@ -112,7 +112,7 @@ class Equipment extends React.Component {
}
//if you can't see it and you don't own it, don't render it (for legendary items)
if (!structure.statistics[type][name].visible && !structure.owned[name]) {
if (!structure.statistics[type][name].visible && !structure.owned[name]) { //TODO: sort out the visible mixup
return;
}
@@ -37,6 +37,8 @@ class PagedCombatLog extends React.Component {
if (xhr.status === 200) {
let json = JSON.parse(xhr.responseText);
json.sort((a, b) => new Date(b.eventTime) - new Date(a.eventTime));
//on success
this.setState(json);
@@ -37,6 +37,8 @@ class PagedSpyingLog extends React.Component {
if (xhr.status === 200) {
let json = JSON.parse(xhr.responseText);
json.sort((a, b) => new Date(b.eventTime) - new Date(a.eventTime));
//on success
this.setState(json);