Minor comment tweaks
This commit is contained in:
+1
-1
@@ -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',
|
||||
|
||||
+1
-1
@@ -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++) {
|
||||
|
||||
@@ -22,5 +22,5 @@ export function sessionChange(token) {
|
||||
return {
|
||||
type: SESSIONCHANGE,
|
||||
token: token
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -20,7 +20,7 @@ class NewsPanel extends React.Component {
|
||||
);
|
||||
}
|
||||
|
||||
fetchNews(max = 3) {
|
||||
fetchNews(max) {
|
||||
//build the XHR
|
||||
let xhr = new XMLHttpRequest();
|
||||
|
||||
|
||||
Reference in New Issue
Block a user