Cleanup logging

This commit is contained in:
IRBorisov 2023-08-28 00:03:31 +03:00
parent cac74272f2
commit 91c318f36a
4 changed files with 2 additions and 4 deletions

View File

@ -9,7 +9,7 @@ interface BackendErrorProps {
} }
function DescribeError(error: ErrorInfo) { function DescribeError(error: ErrorInfo) {
console.log(error); reportError(error);
if (!error) { if (!error) {
return <p>Ошибки отсутствуют</p>; return <p>Ошибки отсутствуют</p>;
} else if (typeof error === 'string') { } else if (typeof error === 'string') {

View File

@ -7,7 +7,6 @@ interface EmbedYoutubeProps {
function EmbedYoutube({ videoID, pxHeight, pxWidth }: EmbedYoutubeProps) { function EmbedYoutube({ videoID, pxHeight, pxWidth }: EmbedYoutubeProps) {
if (!pxWidth) { if (!pxWidth) {
pxWidth = pxHeight * 16 / 9; pxWidth = pxHeight * 16 / 9;
console.log(pxWidth);
} }
return ( return (
<div <div

View File

@ -3,7 +3,7 @@ import { type FallbackProps } from 'react-error-boundary';
import Button from './Common/Button'; import Button from './Common/Button';
function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) { function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) {
console.log(error); reportError(error);
return ( return (
<div className='flex flex-col items-center antialiased clr-app' role='alert'> <div className='flex flex-col items-center antialiased clr-app' role='alert'>
<h1 className='text-lg font-semibold'>Something went wrong!</h1> <h1 className='text-lg font-semibold'>Something went wrong!</h1>

View File

@ -9,7 +9,6 @@ import { getCstExpressionPrefix } from '../utils/staticUI';
const LOGIC_TYPIIFCATION = 'LOGIC'; const LOGIC_TYPIIFCATION = 'LOGIC';
function checkTypeConsistency(type: CstType, typification: string, args: IFunctionArg[]): boolean { function checkTypeConsistency(type: CstType, typification: string, args: IFunctionArg[]): boolean {
console.log(typification)
switch (type) { switch (type) {
case CstType.BASE: case CstType.BASE:
case CstType.CONSTANT: case CstType.CONSTANT: