Skip to content

Commit

Permalink
fix(logger): do not use bunyan on client side
Browse files Browse the repository at this point in the history
  • Loading branch information
gustavovalverde committed Jul 30, 2023
1 parent 5d70cb9 commit acd4bd5
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/components/biometric/face-liveness-detector.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ import React from 'react';

import { defaultLivenessDisplayText } from './displayText';
import { useSnackbar } from '@/components/elements/alert';
import logger from '@/lib/logger';

export function LivenessQuickStartReact({ handleNextForm, cedula }: any) {
const next = handleNextForm;
Expand Down Expand Up @@ -47,14 +46,14 @@ export function LivenessQuickStartReact({ handleNextForm, cedula }: any) {

useEffect(() => {
fetchCreateLiveness().catch((error) => {
logger.error(error);
console.error(error);
setError(error);
});
}, []);

useEffect(() => {
if (error) {
logger.error(error);
console.error(error);
AlertError('No se ha podido validar su identidad. Si ha intentado varias veces, posiblemente tenga que actualizar su foto en la JCE');
}
// TODO: AlertError is causing re-rendering issues. But not adding it causes eslint error.
Expand Down

0 comments on commit acd4bd5

Please sign in to comment.