diff --git a/src/General/DataBoard.coffee b/src/General/DataBoard.coffee index fcf943a1c..4cd054375 100644 --- a/src/General/DataBoard.coffee +++ b/src/General/DataBoard.coffee @@ -59,8 +59,10 @@ 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: - @data.boards[boardID] or= {} - @deleteIfEmpty {boardID} + if typeof @data.boards[boardID] isnt 'object' + delete @data.boards[boardID] + else + @deleteIfEmpty {boardID} now = Date.now() if (@data.lastChecked or 0) < now - 2 * $.HOUR