Commit 8509fcae556048ced291da64b925be3c2cf4a0d5

Authored by Nicolás Guarnieri
Exists in master

Merge branch 'master' into 'master'

Master

See merge request !1
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 }