Commit c763583dd4831fc9e2c7ebc09ffee785ebc099b3
1 parent
6e6c5fbdb9
Exists in
master
valido que no venga null
Showing
1 changed file
with
1 additions
and
1 deletions
Show diff stats
src/js/controller.js
| ... | ... | @@ -5,7 +5,7 @@ angular.module('focaModalEfectivo') |
| 5 | 5 | '$uibModalInstance', |
| 6 | 6 | function($scope, $uibModalInstance) { |
| 7 | 7 | $scope.aceptar = function(key) { |
| 8 | - if(key === 13) { | |
| 8 | + if(key === 13 && $scope.efectivo) { | |
| 9 | 9 | var efectivo = parseFloat($scope.efectivo); |
| 10 | 10 | $uibModalInstance.close(efectivo); |
| 11 | 11 | } |