From c5888e3d2144ed38ddbffe9cedf77f56f8752337 Mon Sep 17 00:00:00 2001 From: Blade Barringer Date: Fri, 23 Sep 2016 07:04:11 -0500 Subject: [PATCH] fix(client): Allow backgrounds to be changed --- website/client-old/js/controllers/userCtrl.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/website/client-old/js/controllers/userCtrl.js b/website/client-old/js/controllers/userCtrl.js index 0d8ca10dac..b2bb641c15 100644 --- a/website/client-old/js/controllers/userCtrl.js +++ b/website/client-old/js/controllers/userCtrl.js @@ -65,7 +65,7 @@ habitrpg.controller("UserCtrl", ['$rootScope', '$scope', '$location', 'User', '$ if (fullSet) { if (confirm(window.env.t('purchaseFor',{cost:cost*4})) !== true) return; if (User.user.balance < cost) return $rootScope.openModal('buyGems'); - } else if (!_.get(user, 'purchased.' + path)) { + } else if (!_.get(User.user, 'purchased.' + path)) { if (confirm(window.env.t('purchaseFor',{cost:cost*4})) !== true) return; if (User.user.balance < cost) return $rootScope.openModal('buyGems'); }