diff --git a/src/General/DataBoard.coffee b/src/General/DataBoard.coffee index 1d6d30a3f..fcf943a1c 100644 --- a/src/General/DataBoard.coffee +++ b/src/General/DataBoard.coffee @@ -59,10 +59,8 @@ class DataBoard for boardID, val of @data.boards # XXX tmp fix for users that had the `null` # value for a board with the Unread features: - unless val - delete @data.boards[boardID] - else - @deleteIfEmpty {boardID} + @data.boards[boardID] or= {} + @deleteIfEmpty {boardID} now = Date.now() if (@data.lastChecked or 0) < now - 2 * $.HOUR