Comment how we're remembering form vals

This commit is contained in:
David Baker 2016-07-07 11:26:35 +01:00
parent 5c879d786e
commit a6b04c462e

View file

@ -54,6 +54,13 @@ module.exports = React.createClass({
return {
busy: false,
errorText: null,
// We remember the values entered by the user because
// the registration form will be unmounted during the
// course of registration, but if there's an error we
// want to bring back the registration form with the
// values the user enetered still in it. We can keep
// them in this component's state since this component
// persist for the duration of the registration process.
formVals: {
email: this.props.email,
},