Skip to content
This repository has been archived by the owner on Jul 12, 2024. It is now read-only.

Commit

Permalink
The glass is half full. Therefore my state change should be too.
Browse files Browse the repository at this point in the history
  • Loading branch information
timmyc committed Jun 28, 2019
1 parent 8602d2a commit 46968fd
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion client/analytics/settings/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,9 @@ class Settings extends Component {
saveChanges = () => {
this.persistChanges( this.state );
this.props.updateSettings( { wc_admin: this.state.settings } );
this.setState( { saving: true } );

// TODO: remove this optimistic set of isDirty to false once #2541 is resolved.
this.setState( { saving: true, isDirty: false } );
};

handleInputChange( e ) {
Expand Down

0 comments on commit 46968fd

Please sign in to comment.