bug: Show the count in the bankruptcy modal.

(This was a recent regression.)
This commit is contained in:
Steve Howell
2017-08-17 23:30:41 -04:00
parent c26e000d4e
commit eeb164dfc5

View File

@@ -90,7 +90,7 @@ function consider_bankruptcy() {
if ((page_params.unread_msgs.count > 500) &&
(now - page_params.furthest_read_time > 60 * 60 * 24 * 2)) { // 2 days.
var unread_info = templates.render('bankruptcy_modal',
{unread_count: page_params.unread_count});
{unread_count: page_params.unread_msgs.count});
$('#bankruptcy-unread-count').html(unread_info);
$('#bankruptcy').modal('show');
} else {