diff --git a/website/public/js/controllers/challengesCtrl.js b/website/public/js/controllers/challengesCtrl.js index 3a34b4b48f..36e3258356 100644 --- a/website/public/js/controllers/challengesCtrl.js +++ b/website/public/js/controllers/challengesCtrl.js @@ -124,15 +124,12 @@ habitrpg.controller("ChallengesCtrl", ['$rootScope','$scope', 'Shared', 'User', challenge.$save(function(_challenge){ if (isNew) { Notification.text(window.env.t('challengeCreated')); - $state.transitionTo('options.social.challenges.detail', {cid: challenge._id}, { - reload: true, inherit: false, notify: true - }); User.sync(); - } else { - $state.transitionTo('options.social.challenges.detail', {cid: challenge._id}, { - reload: true, inherit: false, notify: true - }); } + + $state.transitionTo('options.social.challenges.detail', { cid: _challenge._id }, { + reload: true, inherit: false, notify: true + }); }); };