diff --git a/website/src/App.tsx b/website/src/App.tsx index 1796640..2252a6b 100644 --- a/website/src/App.tsx +++ b/website/src/App.tsx @@ -79,7 +79,9 @@ import { } from "./types/dictionary-types"; import PhraseBuilder from "./screens/PhraseBuilder"; import { searchAllInflections } from "./lib/search-all-inflections"; -import { addToWordlist } from "./lib/__mocks__/wordlist-database"; +import { + addToWordlist, +} from "./lib/wordlist-database"; // to allow Moustrap key combos even when input fields are in focus Mousetrap.prototype.stopCallback = function () { @@ -246,7 +248,6 @@ class App extends Component { this.handlePowerSearch(); }); Mousetrap.bind(["ctrl+s", "command+s"], (e) => { - console.log("hit ctrl+s"); if (this.state.user?.level === "basic") return; e.preventDefault(); if (!this.state.isolatedEntry) return; @@ -254,7 +255,6 @@ class App extends Component { entry: this.state.isolatedEntry, notes: "", }; - console.log("Adding this to wordlist", toAdd); addToWordlist(toAdd); }); Mousetrap.bind(["ctrl+\\", "command+\\"], (e) => { diff --git a/website/src/lib/wordlist-database.ts b/website/src/lib/wordlist-database.ts index a6de178..ce71803 100644 --- a/website/src/lib/wordlist-database.ts +++ b/website/src/lib/wordlist-database.ts @@ -45,9 +45,7 @@ export async function addToWordlist({ entry, notes }: { entry, notes, }; - console.log("going to add to wordlist", entry); await addToLocalDb({ type: "wordlist", doc }); - console.log("has been added"); return doc; }