Explorar o código

fix: #4240 remove tip when 0 context

river hai 1 ano
pai
achega
4b8288a2b2
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -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"