Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fixed variable naming for updating user info #37

Merged
merged 1 commit into from
Sep 29, 2019
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions frontend/src/views/account.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,21 +90,21 @@ class Account extends Component {
<div className="col-md-6">
<div className="form-group">
<label>First Name</label>
<input type="text" className="form-control" id="first" onChange={ this.changeHandler } value={ this.state.user.first_name } />
<input type="text" className="form-control" id="first_name" onChange={ this.changeHandler } value={ this.state.user.first_name } />
</div>
</div>
<div className="col-md-6">
<div className="form-group">
<label>Last Name</label>
<input type="text" className="form-control" id="last" onChange={ this.changeHandler } value={ this.state.user.last_name } />
<input type="text" className="form-control" id="last_name" onChange={ this.changeHandler } value={ this.state.user.last_name } />
</div>
</div>
</div>
<div className="row">
<div className="col-md-6">
<div className="form-group">
<label>Date of Birth (YYYY-MM-DD)</label>
<input type="text" className="form-control" id="dob" onChange={ this.changeHandler } value={ this.state.user.date_of_birth } />
<input type="text" className="form-control" id="date_of_birth" onChange={ this.changeHandler } value={ this.state.user.date_of_birth } />
</div>
</div>

Expand Down