Skip to content

Commit

Permalink
Merge pull request #2 from kevindublin/kd-17-add-user-order-form
Browse files Browse the repository at this point in the history
Kd 17 add user order form
  • Loading branch information
kevindublin authored Jun 17, 2020
2 parents 13261c2 + 8772059 commit cc85ccd
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion application/src/components/order-form/orderForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ class OrderForm extends Component {
<Template>
<div className="form-wrapper">
<form>
<label className="form-label">I'd like to order...</label><br />
<label className="form-label">{this.props.auth.email} would like to order...</label><br />
<select
value={this.state.order_item}
onChange={(event) => this.menuItemChosen(event)}
Expand Down
2 changes: 1 addition & 1 deletion application/src/redux/reducers/authReducer.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ const INITIAL_STATE = { email: null, token: null };
export default (state = INITIAL_STATE, action) => {
switch (action.type) {
case LOGIN:
return { ...state, email: action.payload.login, token: action.payload.token }
return { ...state, email: action.payload.email, token: action.payload.token }
case LOGOUT:
return { ...state, ...INITIAL_STATE }
default:
Expand Down

0 comments on commit cc85ccd

Please sign in to comment.