Skip to content

Commit

Permalink
Hotfix: Remove console.logs
Browse files Browse the repository at this point in the history
Replace error prints with console.error
  • Loading branch information
binamkayastha committed Jul 21, 2024
1 parent 092b05d commit 970251e
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 4 deletions.
4 changes: 3 additions & 1 deletion nepalingo-web/src/components/Flashcard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,9 @@ const Flashcard: React.FC = () => {
language: "newari",
word,
});
console.log(error);
if (error) {
console.error(error);
}

const handleFlip = () => {
setIsFlipped(!isFlipped);
Expand Down
1 change: 0 additions & 1 deletion nepalingo-web/src/components/header/ChangeLanguage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,6 @@ const ChangeLanguage: React.FC = () => {
label: key,
value: Languages[key as LanguageKey],
}));
console.log(options);
return (
<div ref={dropdownRef} className="relative text-left h-full">
<button
Expand Down
4 changes: 3 additions & 1 deletion nepalingo-web/src/hooks/useNewari.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,9 @@ const useNewari = (props: Omit<DictionaryProps, "language">) => {
`/dict/en/search/${props.word}`,
fetcher,
);
console.log(data, error, isLoading);
if (error) {
console.error(data, error, isLoading);
}

const customError = data?.errors.length
? { status: true, response: data.errors, message: data.errors[0] }
Expand Down
1 change: 0 additions & 1 deletion nepalingo-web/src/pages/Login.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,6 @@ const Login: React.FC = () => {
};

if (session) {
console.log(session);
return <Navigate to={"/"} replace />;
}
return (
Expand Down

0 comments on commit 970251e

Please sign in to comment.