Fixing issue where badge is constantly in loading state when not logged in