Minor comment tweaks

This commit is contained in:
2019-05-24 06:23:54 +10:00
parent c28f4f0fe2
commit 936fe9f2f5
4 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -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
View File
@@ -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++) {
+1 -1
View File
@@ -22,5 +22,5 @@ export function sessionChange(token) {
return {
type: SESSIONCHANGE,
token: token
}
};
}
+1 -1
View File
@@ -20,7 +20,7 @@ class NewsPanel extends React.Component {
);
}
fetchNews(max = 3) {
fetchNews(max) {
//build the XHR
let xhr = new XMLHttpRequest();