From e1390dbb9e990cfd874972b04d4038af28fa9f33 Mon Sep 17 00:00:00 2001 From: Tony Kan Date: Mon, 11 Nov 2024 11:40:59 -0800 Subject: [PATCH] fix: Ensure error message is displayed when connection fails - Added logic to remove the "hidden" class from the room list container when a connection error occurs. - This change ensures that the error message is correctly displayed when there is a connection failure. This fix improves the user experience by providing clear feedback when a connection error occurs. --- views/pages/home.ejs | 1 + 1 file changed, 1 insertion(+) diff --git a/views/pages/home.ejs b/views/pages/home.ejs index 89dcba7..f97bcff 100644 --- a/views/pages/home.ejs +++ b/views/pages/home.ejs @@ -152,6 +152,7 @@ ${error.message} `; + document.getElementById("room-list-container").classList.remove("hidden"); return; }