ui: remove old console logs

This commit is contained in:
Matthew Penner 2021-07-21 12:21:10 -06:00
parent 3b1a0e22a7
commit 23de3d68f3
4 changed files with 0 additions and 15 deletions

View file

@ -44,17 +44,13 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
login({ ...values, recaptchaData: token })
.then(response => {
console.log('wow!');
console.log(response);
if (response.complete) {
console.log(`Redirecting to: ${response.intended || '/'}`);
// @ts-ignore
window.location = response.intended || '/';
return;
}
if (response.methods?.includes('webauthn')) {
console.log('Redirecting to: /auth/login/key');
history.replace('/auth/login/key', {
token: response.confirmationToken,
publicKey: response.publicKey,
@ -64,12 +60,8 @@ const LoginContainer = ({ history }: RouteComponentProps) => {
}
if (response.methods?.includes('totp')) {
console.log('/auth/login/checkpoint');
history.replace('/auth/login/checkpoint', { token: response.confirmationToken });
return;
}
console.log('huh?');
})
.catch(error => {
console.error(error);

View file

@ -264,9 +264,7 @@ export default ({ className, style, overrides, initialContent, extensions, mode,
effects: languageConfig.reconfigure(findLanguageExtensionByMode(mode)),
});
console.log(mode);
if (onModeChanged !== undefined) {
console.log(mode);
onModeChanged(mode);
}
}, [ filename ]);