Skip to content

Commit 9fb2a30

Browse files
committed
fix: wrong send preference mode when it is undefined
1 parent a829a51 commit 9fb2a30

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/client/components/ChatV2/ChatBox.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -85,7 +85,7 @@ export const ChatBox = ({
8585
},
8686
}) // @todo what key combination to open model selector
8787

88-
const isShiftEnterSend = user?.preferences?.sendShortcutMode === 'shift+enter'
88+
const isShiftEnterSend = user?.preferences?.sendShortcutMode === 'shift+enter' || !user?.preferences?.sendShortcutMode
8989

9090
const handleDeleteFile = () => {
9191
if (fileInputRef.current) {

0 commit comments

Comments
 (0)