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) {
console.log(error);
reportError(error);
if (!error) {
return <p>Ошибки отсутствуют</p>;
} else if (typeof error === 'string') {

View File

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

View File

@ -3,7 +3,7 @@ import { type FallbackProps } from 'react-error-boundary';
import Button from './Common/Button';
function ErrorFallback({ error, resetErrorBoundary }: FallbackProps) {
console.log(error);
reportError(error);
return (
<div className='flex flex-col items-center antialiased clr-app' role='alert'>
<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';
function checkTypeConsistency(type: CstType, typification: string, args: IFunctionArg[]): boolean {
console.log(typification)
switch (type) {
case CstType.BASE:
case CstType.CONSTANT: