Skip to content

Commit 9cfd6ed

Browse files
Update app/chat/builder/page.tsx
Co-authored-by: kilo-code-bot[bot] <240665456+kilo-code-bot[bot]@users.noreply.github.com>
1 parent 7f9ef9b commit 9cfd6ed

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/chat/builder/page.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -132,7 +132,7 @@ export default function AgentBuilderPage() {
132132
const handleSave = async () => {
133133
if (!canSave) {
134134
setError(
135-
selectedProvider?.connected === false
135+
selectedProvider && !selectedProvider.connected
136136
? `Configure ${selectedProvider.envVar} before creating an agent with ${selectedProvider.name}.`
137137
: 'Name, instructions, provider, and model are required.'
138138
)

0 commit comments

Comments
 (0)