diff --git a/js/directives.js b/js/directives.js
index 262cb719e..ac823cdb1 100644
--- a/js/directives.js
+++ b/js/directives.js
@@ -91,15 +91,14 @@ angular.module('copayApp.directives')
])
.directive('validAmount', ['$rootScope', '$locale',
function($rootScope, locale) {
- var w = $rootScope.wallet;
- preconditions.checkState(w);
- preconditions.checkState(w.settings.unitToSatoshi);
var formats = locale.NUMBER_FORMATS;
return {
require: 'ngModel',
link: function(scope, element, attrs, ctrl) {
var val = function(value) {
+ var w = $rootScope.wallet;
+ preconditions.checkState(w);
var vNum = Number((value * w.settings.unitToSatoshi).toFixed(0));
if (typeof value == 'undefined') {
diff --git a/views/send.html b/views/send.html
index 7cedcf8bb..5804b0027 100644
--- a/views/send.html
+++ b/views/send.html
@@ -88,7 +88,7 @@