Skip to content

Commit

Permalink
fix: #4240 remove tip when 0 context
Browse files Browse the repository at this point in the history
  • Loading branch information
Leizhenpeng committed Sep 12, 2024
1 parent 1234dea commit 4b8288a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/components/chat.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ function PromptToast(props: {

return (
<div className={styles["prompt-toast"]} key="prompt-toast">
{props.showToast && (
{props.showToast && context.length > 0 && (
<div
className={styles["prompt-toast-inner"] + " clickable"}
role="button"
Expand Down

0 comments on commit 4b8288a

Please sign in to comment.