Skip to content

Commit

Permalink
bump version and format
Browse files Browse the repository at this point in the history
  • Loading branch information
bartonhammond committed Feb 23, 2016
1 parent 3a1e600 commit 9e7f716
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 35 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "snowflake",
"version": "0.0.10",
"version": "0.0.11",
"private": true,
"jest": {
"scriptPreprocessor": "jestSupport/scriptPreprocess.js",
Expand Down
66 changes: 33 additions & 33 deletions src/reducers/auth/authActions.js
Original file line number Diff line number Diff line change
Expand Up @@ -127,9 +127,9 @@ export function logout() {
return BackendFactory(token).logout();
})
.then(() => {
dispatch(registerState());
dispatch(logoutSuccess());
dispatch(deleteSessionToken());
dispatch(registerState());
dispatch(logoutSuccess());
dispatch(deleteSessionToken());
})
.catch((error) => {
dispatch(loginState());
Expand Down Expand Up @@ -255,26 +255,26 @@ export function signup(username, email, password) {
email: email,
password: password
})
.then(function (json) {
return saveSessionToken(json)
.then(function () {
dispatch(signupSuccess(
Object.assign({},
{
username: username,
email: email,
objectId: json.objectId,
createdAt: json.createdAt,
sessionToken: json.sessionToken
}
)
));
dispatch(logoutState());
});
})
.catch((error) => {
dispatch(signupFailure(error));
});
.then(function (json) {
return saveSessionToken(json)
.then(function () {
dispatch(signupSuccess(
Object.assign({},
{
username: username,
email: email,
objectId: json.objectId,
createdAt: json.createdAt,
sessionToken: json.sessionToken
}
)
));
dispatch(logoutState());
});
})
.catch((error) => {
dispatch(signupFailure(error));
});
};
}

Expand Down Expand Up @@ -318,16 +318,16 @@ export function login(username, password) {
username: username,
password: password
})
.then(function (json) {
return saveSessionToken(json)
.then(function () {
dispatch(loginSuccess(json));
dispatch(logoutState());
});
})
.catch((error) => {
dispatch(loginFailure(error));
});
.then(function (json) {
return saveSessionToken(json)
.then(function () {
dispatch(loginSuccess(json));
dispatch(logoutState());
});
})
.catch((error) => {
dispatch(loginFailure(error));
});
};
}

Expand Down
2 changes: 1 addition & 1 deletion src/snowflake.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ import profileInitialState from './reducers/profile/profileInitialState';
/**
* The version of the app but not displayed yet
*/
var VERSION='0.0.10';
var VERSION='0.0.11';

/**
*
Expand Down

0 comments on commit 9e7f716

Please sign in to comment.