Skip to content

Commit

Permalink
Update script.js
Browse files Browse the repository at this point in the history
  • Loading branch information
amir734jj authored Apr 1, 2022
1 parent 017a0ce commit 7f49c13
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion API/wwwroot/scripts/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,7 +114,7 @@ angular.module('tourApp', ['ui.toggle', 'ngTagsInput'])
}])
.controller('userRegistrationCtrl', ['$scope', function ($scope) {
$scope.validateInvitationCode = function ($event) {
if ($scope.invitation_code !== $scope.invitation_code_value) {
if (!$scope.invitation_code || $scope.invitation_code.toLowerCase() !== $scope.invitation_code_value.toLowerCase()) {
$scope.error = true;
$event.preventDefault();
} else {
Expand Down

0 comments on commit 7f49c13

Please sign in to comment.