VerifyPage: don't enter Sign Up page on failure

Entering the page causes the Sign Up flow to run, which is confusing.
This commit is contained in:
infinite-persistence 2022-04-06 12:49:17 +08:00 committed by Thomas Zarebczan
parent 13f9f24af7
commit 351eee76b3

View file

@ -1,5 +1,4 @@
// @flow
import * as PAGES from 'constants/pages';
import React, { useState } from 'react';
import { withRouter } from 'react-router';
import Page from 'component/page';
@ -39,7 +38,6 @@ function SignInVerifyPage(props: Props) {
message: message || __('Authentication failure.'),
isError: true,
});
push(`/$/${PAGES.AUTH}`);
}
React.useEffect(() => {