mirror of
https://gitlab.com/wheres-the-tp/ui-mobile.git
synced 2026-01-25 07:54:57 -06:00
remove debugger from loginpage
This commit is contained in:
parent
02cb562ee2
commit
a2206a00bf
1 changed files with 4 additions and 3 deletions
|
|
@ -13,8 +13,10 @@ type Props = {
|
||||||
error: string,
|
error: string,
|
||||||
setError: (err: string) => void,
|
setError: (err: string) => void,
|
||||||
router: {
|
router: {
|
||||||
location: {
|
route: {
|
||||||
pathname: string,
|
location: {
|
||||||
|
pathname: string,
|
||||||
|
},
|
||||||
},
|
},
|
||||||
history: {
|
history: {
|
||||||
replace: (url: string) => void,
|
replace: (url: string) => void,
|
||||||
|
|
@ -26,7 +28,6 @@ type Props = {
|
||||||
deauthUser: () => void,
|
deauthUser: () => void,
|
||||||
};
|
};
|
||||||
const LoginPageComponent = ({ authUser, deauthUser, error, router }: Props) => {
|
const LoginPageComponent = ({ authUser, deauthUser, error, router }: Props) => {
|
||||||
debugger;
|
|
||||||
if (/logout/.test(router.route.location.pathname)) {
|
if (/logout/.test(router.route.location.pathname)) {
|
||||||
deauthUser();
|
deauthUser();
|
||||||
return null;
|
return null;
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue