From 39c58138f3571d11ac4e0b60e8088e1c9b947336 Mon Sep 17 00:00:00 2001 From: Koper Date: Thu, 14 Sep 2023 23:33:03 +0700 Subject: [PATCH] Change shown summary type --- www/app/transcripts/useWebSockets.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/www/app/transcripts/useWebSockets.ts b/www/app/transcripts/useWebSockets.ts index ed691a1f..25e83e9c 100644 --- a/www/app/transcripts/useWebSockets.ts +++ b/www/app/transcripts/useWebSockets.ts @@ -95,17 +95,17 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => { console.debug("TOPIC event:", message.data); break; - case "FINAL_LONG_SUMMARY": - console.debug("FINAL_LONG_SUMMARY event:", message.data); + case "FINAL_SHORT_SUMMARY": + console.debug("FINAL_SHORT_SUMMARY event:", message.data); break; - case "FINAL_SHORT_SUMMARY": + case "FINAL_LONG_SUMMARY": if (message.data) { setFinalSummary(message.data); const newUrl = "/transcripts/" + transcriptId; router.push(newUrl); console.debug( - "FINAL_SUMMARY event:", + "FINAL_LONG_SUMMARY event:", message.data, "newUrl", newUrl,