Skip to content
This repository was archived by the owner on Apr 15, 2019. It is now read-only.

Commit 17b6fc4

Browse files
committed
Fix "send all funds" to set 0 if no funds
1 parent bfe45a0 commit 17b6fc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/app/components/send/send.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -109,7 +109,7 @@ app.component('send', {
109109
}
110110

111111
setMaxAmount() {
112-
this.amount.value = this.amount.max;
112+
this.amount.value = Math.max(0, this.amount.max);
113113
}
114114
},
115115
});

0 commit comments

Comments
 (0)