Skip to content

Commit 72302dd

Browse files
author
Travis
committed
Merge branch 'development'
2 parents d370226 + a927be4 commit 72302dd

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

app/actions/registration/registrationActions.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import {postUsers} from '../../services/authService';
22
import * as registrationActionTypes from './registrationActionTypes';
3+
import {HOME} from '../../constants';
34

45
export const registerIfNeeded = () => {
56
return (dispatch, getState) => {
@@ -14,11 +15,10 @@ const registration = () => {
1415
return (dispatch, getState) => {
1516
dispatch(registrationRequest());
1617

17-
const {registration, auth, app} = getState();
18+
const {registration, auth} = getState();
1819
const {activationUrl, activationFromEmail} = auth;
19-
const {appBarTitle} = app;
2020

21-
return postUsers({registration: registration.registration, activationUrl, activationFromEmail, appName: appBarTitle})
21+
return postUsers({registration: registration.registration, activationUrl, activationFromEmail, appName: HOME})
2222
.then((response) => {
2323
if (response.status === 201) {
2424
dispatch(registrationSuccess('Account created. We have sent you an email with activation instructions.'));

0 commit comments

Comments
 (0)