Browse Source

Update Unitfee

qdn-metadata
AlphaX-Projects 3 years ago committed by GitHub
parent
commit
2d9e1df7aa
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 5
      qortal-ui-plugins/plugins/core/name-registration/name-registration.src.js

5
qortal-ui-plugins/plugins/core/name-registration/name-registration.src.js

@ -119,6 +119,9 @@ class NameRegistration extends LitElement {
</span> </span>
<span ?hidden=${this.message === ''} style="${this.error ? 'color:red;' : ''}"> <span ?hidden=${this.message === ''} style="${this.error ? 'color:red;' : ''}">
${this.message} ${this.message}
</span><br>
<span>
<b>The current name registration fee is ${this.fee} QORT.</b>
</span> </span>
</div> </div>
@ -222,7 +225,7 @@ class NameRegistration extends LitElement {
return Promise.reject(response); return Promise.reject(response);
}) })
.then((json) => { .then((json) => {
this.fee = (Number(json) / 1e8).toFixed(8); this.fee = (Number(json) / 1e8).toFixed(2);
}) })
.catch((response) => { .catch((response) => {
console.log(response.status, response.statusText, 'Need Core Update'); console.log(response.status, response.statusText, 'Need Core Update');

Loading…
Cancel
Save