Skip to content

Commit f3bb390

Browse files
RobbilieRobert Schuh
authored andcommitted
fix boolean type mismatch
1 parent 65336a3 commit f3bb390

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

src/app/components/chat/chat.component.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -431,7 +431,7 @@ export class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
431431
this.openSnackBar(chunkJson.error, 'OK');
432432
return;
433433
}
434-
if (chunkJson.inputTranscription && chunkJson.partial === this.useStreaming) {
434+
if (chunkJson.inputTranscription && !!chunkJson.partial === this.useStreaming) {
435435
chunkJson.content = {
436436
role: 'user',
437437
parts: [
@@ -441,7 +441,7 @@ export class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
441441
]
442442
}
443443
}
444-
if (chunkJson.outputTranscription && chunkJson.partial === this.useStreaming) {
444+
if (chunkJson.outputTranscription && !!chunkJson.partial === this.useStreaming) {
445445
chunkJson.content = {
446446
role: 'bot',
447447
parts: [
@@ -451,7 +451,7 @@ export class ChatComponent implements OnInit, AfterViewInit, OnDestroy {
451451
]
452452
}
453453
}
454-
if (chunkJson.content && chunkJson.partial === this.useStreaming) {
454+
if (chunkJson.content && !!chunkJson.partial === this.useStreaming) {
455455
let parts = this.combineTextParts(chunkJson.content.parts);
456456
if (this.isEventA2aResponse(chunkJson)) {
457457
parts = this.combineA2uiDataParts(parts);

0 commit comments

Comments
 (0)