Fixed "stealable", and wrote spy instructions
This commit is contained in:
@@ -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);
|
||||
|
||||
|
||||
Reference in New Issue
Block a user