hide qr on small screens

This commit is contained in:
Sara
2023-09-27 19:38:56 +02:00
parent 6f00d2a7fe
commit 81dbdc8712
2 changed files with 8 additions and 4 deletions

View File

@@ -31,7 +31,7 @@ export const useWebSockets = (transcriptId: string | null): UseWebSockets => {
const text = textQueue[0];
setTranscriptText(text);
const WPM_READING = 200 + (textQueue.length * 10); // words per minute to read
const WPM_READING = 200 + textQueue.length * 10; // words per minute to read
const wordCount = text.split(/\s+/).length;
const delay = (wordCount / WPM_READING) * 60 * 1000;
console.log(`displaying "${text}" for ${delay}ms`);