diff --git a/common/utilities.js b/common/utilities.js index aabf636..0d898ee 100644 --- a/common/utilities.js +++ b/common/utilities.js @@ -4,7 +4,7 @@ function validateEmail(email) { return emailExpression.test(email); } -let excluded = [ //errors that should not be logged +let excluded = [ //messages that should not be logged 'Not enough gold', 'Not enough recruits', 'Not enough soldiers', diff --git a/server/news.js b/server/news.js index f35e658..4442d85 100644 --- a/server/news.js +++ b/server/news.js @@ -16,7 +16,7 @@ const newsRequest = () => (req, res) => { } //build the object to send - let json = {} + let json = {} //TODO: caching //send each file as json for (let i = 0; i < max; i++) { diff --git a/src/actions/accounts.js b/src/actions/accounts.js index 1253bb3..7032105 100644 --- a/src/actions/accounts.js +++ b/src/actions/accounts.js @@ -22,5 +22,5 @@ export function sessionChange(token) { return { type: SESSIONCHANGE, token: token - } + }; } \ No newline at end of file diff --git a/src/components/panels/news_panel.jsx b/src/components/panels/news_panel.jsx index b37a77a..ad99ebe 100644 --- a/src/components/panels/news_panel.jsx +++ b/src/components/panels/news_panel.jsx @@ -20,7 +20,7 @@ class NewsPanel extends React.Component { ); } - fetchNews(max = 3) { + fetchNews(max) { //build the XHR let xhr = new XMLHttpRequest();