summaryrefslogtreecommitdiff
path: root/web-ui/src/js/index.js
diff options
context:
space:
mode:
authorRoald de Vries <rdevries@thoughtworks.com>2016-12-05 17:13:13 +0100
committerRoald de Vries <rdevries@thoughtworks.com>2016-12-05 17:40:23 +0100
commit3303510d3dabc4c1efdf39c52db026229d909490 (patch)
tree452e4f87848f954722223e3271fb49638ce837ec /web-ui/src/js/index.js
parent84c065cd49a3aa133b591354d8851f5da22a170f (diff)
no difference between dev and prod static files
Diffstat (limited to 'web-ui/src/js/index.js')
-rw-r--r--web-ui/src/js/index.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/web-ui/src/js/index.js b/web-ui/src/js/index.js
index 57ec42a6..8e66db06 100644
--- a/web-ui/src/js/index.js
+++ b/web-ui/src/js/index.js
@@ -16,7 +16,7 @@ class PixelatedComponent extends React.Component {
}
componentWillUnmount() {
- this.unsubscribe()
+ this.unsubscribe();
}
}
@@ -26,7 +26,7 @@ class PixelatedForm extends PixelatedComponent {
const immutableActionProperties = new Map(actionProperties);
this.props.store.dispatch(immutableActionProperties.merge({status: 'STARTED'}).toJS());
fetch(url).then((response) => {
- return response.json()
+ return response.json();
}).then((json) => {
setTimeout(() => {
this.props.store.dispatch(immutableActionProperties.merge({status: 'SUCCESS', json: json}).toJS());
@@ -93,7 +93,7 @@ class CreateAccountForm extends PixelatedForm {
_handleClick(event) {
event.stopPropagation();
event.preventDefault();
- this.props.store.dispatch({type: 'SUBMIT_CREATE_ACCOUNT', username: event.target['username'].value, password: event.target['password'].value});
+ this.props.store.dispatch({type: 'SUBMIT_CREATE_ACCOUNT', username: event.target.username.value, password: event.target.password.value});
}
}