Explorar o código

Merge pull request #2198 from YBY2020/main

perf : 代码细节优化
Yifei Zhang %!s(int64=2) %!d(string=hai) anos
pai
achega
5d6e7de667
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      app/components/chat.tsx

+ 1 - 1
app/components/chat.tsx

@@ -922,7 +922,7 @@ export function Chat() {
                         }}
                       ></IconButton>
                     </div>
-                    {message.role === "user" ? (
+                    {isUser ? (
                       <Avatar avatar={config.avatar} />
                     ) : (
                       <MaskAvatar mask={session.mask} />