Skip to content

Commit c2c6373

Browse files
committed
Only show end chat button for chat
1 parent 22d54f3 commit c2c6373

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/components/widget/WidgetHeader.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ const WidgetHeader: React.FC<WidgetHeaderProps> = ({
7070
</div>
7171
</div>
7272
<div className="flex items-center space-x-2">
73-
{showEndChatButton !== false && (
73+
{showEndChatButton !== false && mode === 'chat' && (
7474
<button
7575
onClick={onChatComplete}
7676
className={`text-red-600 text-sm font-medium px-2 py-1 border border-transparent hover:border-red-600 rounded-md transition-colors`}

0 commit comments

Comments
 (0)