Skip to content

Commit

Permalink
0.5.2 Allow to use HEX currencies
Browse files Browse the repository at this point in the history
  • Loading branch information
ihomp committed Oct 31, 2021
1 parent 727da8b commit fb3a6bc
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
10 changes: 5 additions & 5 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -91660,7 +91660,7 @@ <h3 class="order-fields hidden">Transaction details</h3>
</script>
<script>(function() {

var version = '0.5.1';
var version = '0.5.2';
var testnet = false;
var bithomp = 'https://bithomp.com';
var bithompTestnet = 'https://test.bithomp.com';
Expand Down Expand Up @@ -93120,8 +93120,8 @@ <h3 class="order-fields hidden">Transaction details</h3>
var currency = DOM.trustlineCurrency.val();
currency = currency.trim().toUpperCase();

if (!currency || currency.lenght > 3) {
DOM.txFeedback.html('Incorrect currency: empty or wrong format');
if (!currency) {
DOM.txFeedback.html('Please enter the currency');
DOM.trustlineCurrency.focus();
return;
}
Expand Down Expand Up @@ -93242,8 +93242,8 @@ <h3 class="order-fields hidden">Transaction details</h3>
var currency = DOMcurrency.val();
currency = currency.trim().toUpperCase();

if (!currency || currency.lenght > 3) {
DOM.txFeedback.html('Incorrect currency: empty or wrong format');
if (!currency) {
DOM.txFeedback.html('Please enter the currency');
DOMcurrency.focus();
return false;
}
Expand Down
10 changes: 5 additions & 5 deletions src/js/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
(function() {

var version = '0.5.1';
var version = '0.5.2';
var testnet = false;
var bithomp = 'https://bithomp.com';
var bithompTestnet = 'https://test.bithomp.com';
Expand Down Expand Up @@ -1460,8 +1460,8 @@ function trustline(action) {
var currency = DOM.trustlineCurrency.val();
currency = currency.trim().toUpperCase();

if (!currency || currency.lenght > 3) {
DOM.txFeedback.html('Incorrect currency: empty or wrong format');
if (!currency) {
DOM.txFeedback.html('Please enter the currency');
DOM.trustlineCurrency.focus();
return;
}
Expand Down Expand Up @@ -1582,8 +1582,8 @@ function validateAmount(DOMamount, DOMcurrency, DOMcounterparty) {
var currency = DOMcurrency.val();
currency = currency.trim().toUpperCase();

if (!currency || currency.lenght > 3) {
DOM.txFeedback.html('Incorrect currency: empty or wrong format');
if (!currency) {
DOM.txFeedback.html('Please enter the currency');
DOMcurrency.focus();
return false;
}
Expand Down

0 comments on commit fb3a6bc

Please sign in to comment.