diff --git a/www/common/cryptpad-common.js b/www/common/cryptpad-common.js index 40dbee37a..050494b06 100644 --- a/www/common/cryptpad-common.js +++ b/www/common/cryptpad-common.js @@ -1099,6 +1099,7 @@ define([ */ var LIMIT_REFRESH_RATE = 30000; // milliseconds common.createUsageBar = function (cb) { + if (!isLoggedIn()) { return cb("NOT_LOGGED_IN"); } // getPinnedUsage updates common.account.usage, and other values // so we can just use those and only check for errors var $container = $('', {'class':'limit-container'});