Skip to content

Commit 44fc460

Browse files
committed
🤖 feat: add clear option for API keys in settings
1 parent 5fa9658 commit 44fc460

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/browser/components/Settings/sections/ProvidersSection.tsx

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -269,7 +269,8 @@ export function ProvidersSection() {
269269
: (fieldValue ?? "Default")}
270270
</span>
271271
<div className="flex gap-2">
272-
{fieldConfig.type === "text" && fieldValue && (
272+
{((fieldConfig.type === "text" && fieldValue) ||
273+
(fieldConfig.type === "secret" && fieldIsSet)) && (
273274
<button
274275
type="button"
275276
onClick={() => void handleClearField(provider, fieldConfig.key)}

0 commit comments

Comments
 (0)