Commit 6a2e5e17cdf4b5e04b786431b5d1bab002807ca7

Authored by Shilpi Saini
1 parent 15fdc738b4
Exists in master

add coupon code

Showing 1 changed file with 2 additions and 2 deletions   Show diff stats
... ... @@ -1086,9 +1086,9 @@ scotchApp.controller('ambassadorController', function($scope, $http, $location,
1086 1086 $scope.submit = function() {
1087 1087 console.log($scope.data.name)
1088 1088 //var randomNumber = ""+Math.random();
1089   - var nameSpliced = $scope.data.name.slice(0,6);
  1089 + var nameSpliced = $scope.data.name.slice(0,5);
1090 1090 //var numberSpliced = randomNumber.slice(2,4);
1091   - var numberSpliced = "99";
  1091 + var numberSpliced = "11";
1092 1092 $scope.data.referalToken = nameSpliced+numberSpliced;
1093 1093 $scope.data.referalToken = $scope.data.referalToken.toUpperCase();
1094 1094 console.log("dsdfs",numberSpliced);
... ...