Skip to content
Snippets Groups Projects
Commit 84ef8482 authored by Ben Wheeler's avatar Ben Wheeler
Browse files

fixed mismatched function name

parent 0918a144
No related branches found
No related tags found
No related merge requests found
......@@ -19,7 +19,7 @@ class ProjectWatcher extends React.Component {
constructor (props) {
super(props);
bindAll(this, [
'waitForSaving'
'waitForUpdate'
]);
this.state = {
......@@ -28,10 +28,10 @@ class ProjectWatcher extends React.Component {
}
componentDidUpdate (prevProps) {
if (this.state.waiting && this.props.isShowingWithId && !prevProps.isShowingWithId) {
this.fulfillRequest();
this.fulfill();
}
}
fulfillRequest () {
fulfill () {
this.props.onDoneUpdating();
this.setState({ // eslint-disable-line react/no-did-update-set-state
waiting: false
......@@ -43,7 +43,7 @@ class ProjectWatcher extends React.Component {
waiting: true
});
} else { // fulfill immediately
this.fulfillRequest();
this.fulfill();
}
}
render () {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment