From 9f11d4f70dfb015092e882841a95eb322f5be57d Mon Sep 17 00:00:00 2001 From: Tyler Renelle Date: Sun, 1 Sep 2013 21:04:23 -0400 Subject: [PATCH] don't let them create guild if low on balance --- assets/js/controllers/groupsCtrl.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/assets/js/controllers/groupsCtrl.js b/assets/js/controllers/groupsCtrl.js index 40b248124c..15e4fd3dec 100644 --- a/assets/js/controllers/groupsCtrl.js +++ b/assets/js/controllers/groupsCtrl.js @@ -77,8 +77,8 @@ habitrpg.controller("GroupsCtrl", ['$scope', '$rootScope', 'Groups', '$http', 'A $scope.newGroup = new Groups({type:'guild', privacy:'private', leader: User.user._id, members: [User.user._id]}); $scope.create = function(group){ - if (User.user.balance >= 1) { - $rootScope.modals.moreGems = true; + if (User.user.balance < 1) { + return $rootScope.modals.moreGems = true; // $('#more-gems-modal').modal('show'); }