Skip to content

Commit

Permalink
Make enum names consistent
Browse files Browse the repository at this point in the history
  • Loading branch information
c-w committed Feb 28, 2018
1 parent 874d9c6 commit 254d920
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions project-fortis-interfaces/src/components/Admin/Admin.js
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ const SETTINGS_TAB = 0;
const WATCHLIST_TAB = 1;
const USERS_TAB = 2;
const CUSTOM_EVENTS_TAB = 3;
const TRUSTED_SOURCES = 4;
const TRUSTED_SOURCES_TAB = 4;
const BLACKLIST_TAB = 5;
const STREAM_TAB = 6;

Expand Down Expand Up @@ -69,7 +69,7 @@ class Admin extends React.Component {

const shouldShowRestartPipelineButton =
index === WATCHLIST_TAB ||
index === TRUSTED_SOURCES ||
index === TRUSTED_SOURCES_TAB ||
index === STREAM_TAB;

return (
Expand Down Expand Up @@ -124,7 +124,7 @@ class Admin extends React.Component {
<TabPanel>
<h2>Trusted Sources</h2>
<div className="adminTable">
{settings && settings.properties && index === TRUSTED_SOURCES &&
{settings && settings.properties && index === TRUSTED_SOURCES_TAB &&
<div>
<TrustedSources {...this.props}/>
</div>}
Expand Down

0 comments on commit 254d920

Please sign in to comment.