Change shown summary type

This commit is contained in:
Koper
2023-09-14 23:33:03 +07:00
parent 3a9c1319c1
commit 39c58138f3

View File

@@ -95,17 +95,17 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => {
console.debug("TOPIC event:", message.data); console.debug("TOPIC event:", message.data);
break; break;
case "FINAL_LONG_SUMMARY": case "FINAL_SHORT_SUMMARY":
console.debug("FINAL_LONG_SUMMARY event:", message.data); console.debug("FINAL_SHORT_SUMMARY event:", message.data);
break; break;
case "FINAL_SHORT_SUMMARY": case "FINAL_LONG_SUMMARY":
if (message.data) { if (message.data) {
setFinalSummary(message.data); setFinalSummary(message.data);
const newUrl = "/transcripts/" + transcriptId; const newUrl = "/transcripts/" + transcriptId;
router.push(newUrl); router.push(newUrl);
console.debug( console.debug(
"FINAL_SUMMARY event:", "FINAL_LONG_SUMMARY event:",
message.data, message.data,
"newUrl", "newUrl",
newUrl, newUrl,