Skip to content

Commit cc85ccd

Browse files
authored
Merge pull request #2 from kevindublin/kd-17-add-user-order-form
Kd 17 add user order form
2 parents 13261c2 + 8772059 commit cc85ccd

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

application/src/components/order-form/orderForm.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ class OrderForm extends Component {
5151
<Template>
5252
<div className="form-wrapper">
5353
<form>
54-
<label className="form-label">I'd like to order...</label><br />
54+
<label className="form-label">{this.props.auth.email} would like to order...</label><br />
5555
<select
5656
value={this.state.order_item}
5757
onChange={(event) => this.menuItemChosen(event)}

application/src/redux/reducers/authReducer.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ const INITIAL_STATE = { email: null, token: null };
55
export default (state = INITIAL_STATE, action) => {
66
switch (action.type) {
77
case LOGIN:
8-
return { ...state, email: action.payload.login, token: action.payload.token }
8+
return { ...state, email: action.payload.email, token: action.payload.token }
99
case LOGOUT:
1010
return { ...state, ...INITIAL_STATE }
1111
default:

0 commit comments

Comments
 (0)