prevents division by zero

This commit is contained in:
Javier 2016-07-20 10:37:12 -03:00
commit b3fcdf8584
2 changed files with 3 additions and 2 deletions

View file

@ -137,6 +137,7 @@ angular.module('copayApp.controllers').controller('inputAmountController', funct
} catch (e) {
return null;
}
if (result == 'Infinity') return null;
return result;
};