From c2968060fe049a1dc6b10254b1db53551216bbb7 Mon Sep 17 00:00:00 2001 From: MayaTheShy Date: Thu, 19 Feb 2026 23:35:33 -0500 Subject: [PATCH] fix: Handle nil values for time and color in dashboard display --- webbridge.lua | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webbridge.lua b/webbridge.lua index b443408..8652eac 100644 --- a/webbridge.lua +++ b/webbridge.lua @@ -181,10 +181,10 @@ local function drawDashboard() monitor.clearLine() monitor.setTextColor(colors.darkGray) - local time = os.date("%H:%M:%S", entry.time / 1000) + local time = os.date("%H:%M:%S", (entry.time or 0) / 1000) monitor.write(time .. " ") - monitor.setTextColor(entry.color) + monitor.setTextColor(entry.color or colors.white) local maxWidth = w - 10 local text = entry.text if #text > maxWidth then