From 970251e2d203bc8c1fbda3bcba55a887f7a41f1d Mon Sep 17 00:00:00 2001 From: binamkayastha Date: Sun, 21 Jul 2024 00:43:58 -0400 Subject: [PATCH] Hotfix: Remove console.logs Replace error prints with console.error --- nepalingo-web/src/components/Flashcard.tsx | 4 +++- nepalingo-web/src/components/header/ChangeLanguage.tsx | 1 - nepalingo-web/src/hooks/useNewari.tsx | 4 +++- nepalingo-web/src/pages/Login.tsx | 1 - 4 files changed, 6 insertions(+), 4 deletions(-) diff --git a/nepalingo-web/src/components/Flashcard.tsx b/nepalingo-web/src/components/Flashcard.tsx index bd8f384..06db7b4 100644 --- a/nepalingo-web/src/components/Flashcard.tsx +++ b/nepalingo-web/src/components/Flashcard.tsx @@ -19,7 +19,9 @@ const Flashcard: React.FC = () => { language: "newari", word, }); - console.log(error); + if (error) { + console.error(error); + } const handleFlip = () => { setIsFlipped(!isFlipped); diff --git a/nepalingo-web/src/components/header/ChangeLanguage.tsx b/nepalingo-web/src/components/header/ChangeLanguage.tsx index cf6133b..9569469 100644 --- a/nepalingo-web/src/components/header/ChangeLanguage.tsx +++ b/nepalingo-web/src/components/header/ChangeLanguage.tsx @@ -46,7 +46,6 @@ const ChangeLanguage: React.FC = () => { label: key, value: Languages[key as LanguageKey], })); - console.log(options); return (