diff --git a/packages/webui/src/public/app.js b/packages/webui/src/public/app.js index 2084ff63..2de73dc9 100644 --- a/packages/webui/src/public/app.js +++ b/packages/webui/src/public/app.js @@ -282,7 +282,7 @@ // Freshness line in the command bar: when the board last scanned, and warning words when the last refresh failed. function fresh() { const at = Date.parse(data?.generatedAt), ago = Number.isFinite(at) ? age(Math.max(0, Math.round((Date.now() - at) / 1000))) : null; - if (!data) { $('fresh-board').innerHTML = failed === 'refused' ? 'Board not read: refused' : failed ? 'Board not read: the read failed' : 'Board not read yet'; return; } + if (!data) { $('fresh-board').innerHTML = failed ? 'Board not read: the read failed' : 'Board not read yet'; return; } const scan = `Board scanned ${esc(Number.isFinite(at) ? `${new Date(at).toISOString().slice(11, 19)} UTC` : 'unknown')}${ago ? ` (${ago} ago)` : ''}`; $('fresh-board').innerHTML = failed ? `${scan} ยท stale: the last refresh failed` : scan; }