From 536d8b4e20cac94e8a9c2f3fe3774d0b66fa053f Mon Sep 17 00:00:00 2001 From: Christoph Stahl Date: Tue, 23 May 2023 14:32:30 +0200 Subject: [PATCH] Correct Javascript syntax --- src/App.vue | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.vue b/src/App.vue index 98e1e61..fd15894 100644 --- a/src/App.vue +++ b/src/App.vue @@ -198,10 +198,11 @@ function registerSocketEvents() { }) state.socket.on("err", (response) => { + console.log(response) switch(response.type) { - "QUEUE_FULL": + case "QUEUE_FULL": var prefix = "The song queue is full and ends at "; - date = new Date(response.end_time * 1000).toLocaleTimeString; + var date = new Date(response.end_time * 1000).toLocaleString(); state.value.last_msg = prefix + date; break; default: