Skip to content

Commit

Permalink
chore: do not logging if not debug mode
Browse files Browse the repository at this point in the history
  • Loading branch information
PleahMaCaka committed Nov 2, 2023
1 parent 443b949 commit a412de0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/lib/components/share/ChatInput.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@
import { stateStore } from "$lib/stores/StateStore"
import Icon from "@iconify/svelte"
import { onMount } from "svelte"
import { get } from "svelte/store"
let text: string = ""
Expand All @@ -16,7 +17,8 @@
if (text.length === 0) return
if (text.trim() === "") return
console.log("Text Submitted:", text)
if (get(stateStore).debug)
console.log("Text Submitted:", text)
$stateStore.input = text
text = ""
Expand Down

0 comments on commit a412de0

Please sign in to comment.