not need else removed

This commit is contained in:
svetlagasheva 2019-11-11 09:57:56 +02:00
parent 5c349c4fca
commit 98bd2e354a

View file

@ -136,15 +136,14 @@ const Intro = ({ queryParams }) => {
if (!state.termsAccepted) {
dispatch({ type: 'error', error: 'You must accept the Terms of Service' });
return;
} else {
core.dispatch({
action: 'UserOp',
args: {
userOp: 'Logout'
}
});
location = '#/';
}
core.dispatch({
action: 'UserOp',
args: {
userOp: 'Logout'
}
});
location = '#/';
}, [state.termsAccepted]);
const signup = React.useCallback(() => {
if (!state.termsAccepted) {