summaryrefslogtreecommitdiffstats
path: root/webapp/components/access_history_modal.jsx
diff options
context:
space:
mode:
Diffstat (limited to 'webapp/components/access_history_modal.jsx')
-rw-r--r--webapp/components/access_history_modal.jsx6
1 files changed, 3 insertions, 3 deletions
diff --git a/webapp/components/access_history_modal.jsx b/webapp/components/access_history_modal.jsx
index 4ed2ad9ab..28a2b6b8f 100644
--- a/webapp/components/access_history_modal.jsx
+++ b/webapp/components/access_history_modal.jsx
@@ -57,15 +57,15 @@ export default class AccessHistoryModal extends React.Component {
}
onAuditChange() {
- var newState = this.getStateFromStoresForAudits();
+ const newState = this.getStateFromStoresForAudits();
if (!Utils.areObjectsEqual(newState.audits, this.state.audits)) {
this.setState(newState);
}
}
render() {
- var content;
- if (this.state.audits.loading) {
+ let content;
+ if (this.state.audits.length === 0) {
content = (<LoadingScreen/>);
} else {
content = (