Skip to content

Commit

Permalink
Change successText from var to const techx#15
Browse files Browse the repository at this point in the history
  • Loading branch information
jeremy-melnyk committed Oct 28, 2017
1 parent 412375c commit 39a8c2c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/client/views/admin/settings/adminSettingsCtrl.js
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ angular.module('reg')
.updateAllowMinors($scope.allowMinors)
.success(function (data) {
$scope.settings.allowMinors = data.allowMinors;
var successText = $scope.settings.allowMinors ?
const successText = $scope.settings.allowMinors ?
"Minors are now allowed to register." :
"Minors are no longer allowed to register."
swal("Looks good!", successText, "success");
Expand Down

0 comments on commit 39a8c2c

Please sign in to comment.