Selaa lähdekoodia

fix: 修复 TypeScript 类型错误 - receive_ai_conversations 表达式

537yaha 8 kuukautta sitten
vanhempi
sitoutus
31553f85ef
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1 1
      frontend/app/agent/settings/page.tsx

+ 1 - 1
frontend/app/agent/settings/page.tsx

@@ -229,7 +229,7 @@ export default function SettingsPage({ embedded = false }: SettingsPageProps = {
               <div className="flex items-center space-x-2">
                 <Checkbox
                   id="receive_ai_conversations"
-                  checked={!profile?.receive_ai_conversations ?? false}
+                  checked={!(profile?.receive_ai_conversations ?? false)}
                   onCheckedChange={async (checked) => {
                     if (userId) {
                       try {