mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-20 06:32:11 +00:00
not need else removed
This commit is contained in:
parent
5c349c4fca
commit
98bd2e354a
1 changed files with 7 additions and 8 deletions
|
|
@ -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) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue